Image processing apparatus, image processing method, and storage medium

ABSTRACT

An image processing apparatus includes: an obtaining unit configured to obtain album information forming a plurality of albums; and an editing unit configured to, in a case of receiving an instruction to add a double-page spread to a predetermined album among the plurality of albums, add a double-page spread also to an album other than the predetermined album among the plurality of albums.

BACKGROUND Field

The present disclosure relates to a technique for creating albums.

Description of the Related Art

In addition to the spread of digital cameras, the spread of smartdevices and the improvement in the camera performance of smart deviceshave rapidly increased the number of photos a user takes. JapanesePatent Laid-Open No. 2016-066328 (hereinafter referred to as Document 1)proposes a method for a plurality of users to create an album together.

However, in a case where a double-page spread is added to one person'salbum, the number of double-page spreads does not match the number ofdouble-page spreads in the other persons' albums, which leads toinequality.

SUMMARY

An image processing apparatus according to one aspect of the presentdisclosure includes: an obtaining unit configured to obtain albuminformation forming a plurality of albums; and an editing unitconfigured to, in a case of receiving an instruction to add adouble-page spread to a predetermined album among the plurality ofalbums, add a double-page spread also to an album other than thepredetermined album among the plurality of albums.

Further features of the present disclosure will become apparent from thefollowing description of exemplary embodiments with reference to theattached drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of hardware capable of executing applicationsaccording to the present disclosure;

FIGS. 2A and 2B are software block diagrams of an album creationapplication;

FIG. 3 is a diagram explaining image layouts:

FIG. 4 is a diagram illustrating a display screen displayed by theapplication;

FIGS. 5A to 5C are process flow diagrams of automatic layout;

FIG. 6 is a diagram explaining image group division;

FIG. 7 is a diagram explaining scene classification;

FIGS. 8A to 8I are diagrams explaining image selection;

FIG. 9 is a block diagram of template selection;

FIG. 10 is a process flow diagram of the template selection;

FIG. 11 is a diagram explaining image layouts;

FIG. 12 is a block diagram of double-page spread joining;

FIG. 13 is a process flow diagram of the double-page spread joining;

FIG. 14 is a software block diagram of an album editing application;

FIG. 15A is a diagram explaining an example of an album editing screen;

FIGS. 15B-1 and 15B-2 are diagrams explaining examples of the albumediting screen;

FIGS. 16A and 16B are diagrams illustrating examples of adding adouble-page spread;

FIG. 17 is a block diagram illustrating details of an album editingcomponent;

FIG. 18 is a diagram illustrating a double-page spread addition UI;

FIG. 19 is a diagram showing the relationship of FIGS. 19A and 19B; and

FIGS. 19A and 19B are totally a flowchart illustrating a process ofexecuting double-page spread addition.

DESCRIPTION OF THE EMBODIMENTS

Hereinbelow, embodiments of the present invention will be described indetail by using the drawings.

Embodiment 1

In the present embodiment, an application for album creation(hereinafter also referred to as “application” or simply “app”) is runon an image processing apparatus, and the application is caused togenerate pieces of album data in each of which a plurality of photoimages are automatically laid out. By printing these pieces of albumdata, a plurality of albums can be created as printed products. In thepresent embodiment, a double-page spread(s) common to at least twoalbums and a double-page spread(s) individually set for each album arecreated. Each album has an individual double-page spread(s) with adifferent structure for the subject to be laid out therein with aparticular emphasis (hereinafter “main subject”), for example. The totalnumber of double-page spreads forming each album (hereinafter “the totalnumber of double-page spreads”) is designated by the user who operatesthe app and is the same for all albums. However, the number of commondouble-page spreads and the number of individual double-page spreads ineach album vary according to the image group and settings. Thedouble-page spreads and the images placed in the double-page spreads arearranged in order of image capture time.

By using individual double-page spreads, the plurality of albums createdcan each be an album partly dedicated to its main subject. That is, theplurality of albums created in the present embodiment are expected notto be completely identical albums in which the same images are placed inthe same layout in every double-page spread. Note that some of theplurality of albums thus created may consequently be completelyidentical albums.

Also, in the present embodiment, the user can edit the piece of albumdata of each album created to include a common double-page spread(s) andan individual double-page spread(s). The following description isbroadly divided into a process of automatically generating pieces ofalbum data and a process of editing the generated pieces of album databy the user. In the user editing process too, the processing isperformed automatically. Configurations for the process of automaticallygenerating pieces of album data will be described first. The process ofediting the generated pieces of album data by the user will be describedafter that.

<<Album Data Generation Process>> <Hardware Configuration of ImageProcessing Apparatus>

A hardware configuration of the image processing apparatus in thepresent embodiment will be described below using FIG. 1. While thefollowing will describe a case where the image processing apparatus isan information processing apparatus (PC), another apparatus such as asmartphone may be employed as the image processing apparatus.

As illustrated in FIG. 1, an image processing apparatus 100 has a CPU101, a ROM 102, a RAM 103, an HDD 104, a display 105, a keyboard 106, amouse 107, and a data communication device 108. These parts areconnected by a data bus 109 and can send and receive data to and fromeach other.

The CPU 101 controls the entire image processing apparatus 100. Also,the CPU 101 executes the image processing method to be described in thepresent embodiment in accordance with a program. Note that while theimage processing apparatus has a single CPU in FIG. 1, the imageprocessing apparatus may have a plurality of CPUs.

The ROM 102 stores programs to be executed by the CPU 101. The RAM 103provides a memory to temporarily store various pieces of informationwhile the CPU 101 executes a program. The HDD 104 stores a databaseholding image files and the results of processes such as an imageanalysis and the like, and so on. In the present embodiment, this HDD104 stores an application program for album creation. Note that thisapplication program is also called “album creation app”, and will bedescribed later using FIGS. 2A and 2B, etc.

The display 105 is a device that displays a user interface (hereinafter“UT”) and an image layout result in the present embodiment to presentthem to the user. The display 105 may have the function of a touchsensor. The keyboard 106 is one of input devices included in the imageprocessing apparatus 100 and is used to, for example, inputpredetermined information into a GUI displayed on the display 105. Inthe present embodiment, the user inputs a desired number of double-pagespreads in each album with the keyboard 106. The mouse 107 is one of theinput devices included in the image processing apparatus 100 and is usedto, for example, click and press buttons in a GUI displayed on thedisplay 105.

The data communication device 108 is a device for communicating withexternal apparatuses, such as a printer and a server. For example,pieces of album data as the result of automatic layout are sent to theprinter or the server connected to the image processing apparatus 100via the data communication device 108. The data bus 109 connects each ofthe above constituent elements and the CPU 101 to each other. The aboveare the contents of the hardware configuration of the image processingapparatus in the present embodiment.

<Software Configuration of Image Processing Apparatus>

A software configuration of the image processing apparatus in thepresent embodiment, in other words, a functional configurationimplemented by the album creation application installed in the imageprocessing apparatus, will be described below using FIGS. 2A and 2B. Thealbum creation application is launched in response to the userdouble-clicking the application's icon displayed on the display 105 withthe mouse 107. While the album creation application has variousfunctions, its automatic layout function provided by an automatic layoutprocessing component 202 will be mainly described below.

As illustrated in FIG. 2A, this app has an album creation conditionsetting component 201, the automatic layout processing component 202, analbum display component 214, and an album information holding component215. “Automatic layout function” refers to a function of generatingalbum data by classifying and selecting captured photo images based ontheir contents, attributes, and the like and then laying them out. Thealbum data thus generated is displayed on the display 105.

An album creation condition setting component 201 sets album creationconditions corresponding to the user's mouse operation to the automaticlayout processing component 202. In the present embodiment, an imagegroup to be used for the albums, the total number of double-page spreadsper album, material of the albums, the number of albums, and the mainsubject in each album are set as the album creation conditions. Theimage group may be set, for example, by using information attached toindividual pieces of image data such as their image capture dates andtimes or by using their attribute information. Alternatively, the imagegroup may be set based on the structure of a file system in which piecesof image data are stored via designation a device or directory or thelike. This image group may be a storage destination storing pieces ofimage data from users who are potential main subjects or a storagedestination storing pieces of image data collected from a particularuser. Note that, in the context of, for example, a display, “double-pagespread” is a single display window and, in the context of a printedproduct, it is a pair of mutually facing pages (i.e., two pages) which auser can view together at the same time in a state where the book isopened. Note that the two pages forming a double-page spread is formedeither as different printed sheets bound to face each other or as asingle printed sheet folded at the center. The description will be givenherein based on concepts of double-page spread as above, but adouble-page spread may just be pages. Also, a main subject refers to asubject to be laid out with a particular emphasis within an album. Forexample, it is a category of object such as a particular person, dog,cat, flower, or dish, the tonality of a whole object or image, or thelike. The main subjects herein are persons for the sake of description.

Now, albums to be created in the present embodiment will be describedusing FIG. 3. In the present embodiment, different versions of an albumare created based on the number of albums and the main subject of eachalbum set by the album creation condition setting component 201. In theexample of FIG. 3, an album 1, an album 2, and an album 3 are created asthe different versions of an album.

Each album includes a “common double-page spread(s)” in which the sameimages are placed in the same layout for all of the different versionsof the album, and an “individual double-page spread(s)” whose images orimage layout is different from those in the other albums. In the exampleof FIG. 3, the albums 1 to 3 each include a common double-page spread302. Moreover, the album 1 includes an individual double-page spread303, the album 2 includes an individual double-page spread 304, and thealbum 3 includes an individual double-page spread 305.

An image 301 is an image placed in a double-page spread, and thecharacters in the image 301 represent main subjects appearing in theimage. In the following figures, “main subject A”, “main subject B”, and“main subject C” are abbreviated as “MS A”, “MS B”, and “MS C”,respectively. As illustrated in FIG. 3, the common double-page spread302 includes images with a plurality of main subjects. On the otherhand, the individual double-page spreads 303 to 305 each include animage(s) with only a particular main subject, for example, theindividual double-page spread 303 includes images with only a mainsubject A. Thus, in the case of creating a plurality of albums in thepresent embodiment, the plurality of albums each include a double-pagespread(s) created based on a different criterion. That is, by beingcreated based on a different criterion, the double-page spread thuscreated appears as a different double-page spread.

The automatic layout processing component 202 has an image obtainingcomponent 203, an image analysis component 204, an main subject settingcomponent 205, a scene division component 206, a scene classificationcomponent 207, an image scoring component 208, a double-page spreadcreation parameter generation component 209, and a double-page spreadcreation component 210. The automatic layout processing component 202also has a double-page spread joining component 211, a layoutinformation output component 212, and an album information outputcomponent 213.

The image obtaining component 203 obtains, from among images stored inthe HDD 104, an image group satisfying the album creation conditions setby the album creation condition setting component 201. The image grouphere refers to a group of images as candidates to be laid out in thealbum creation. For example, in a case where the image capture date andtime are designated to be January 1, XX (year) to December 31, XX(year), all images captured from January 1, XX (year) to December 31, XX(year) are the group of images as candidates to be laid out. The imagesstored in the HDD 104 include still images, cutout images cut out frommoving images, and the like. The still images and cutout images areimages obtained from an image capture device, such as a digital cameraor a smart device. The image capture device may be included in the imageprocessing apparatus 100 or included in an external apparatus associatedwith the image processing apparatus 100. Note that in a case where theimage capture device is an external apparatus, the image obtainingcomponent 203 obtains images via the data communication device 108.Also, the still images and cutout images may be images obtained from anexternal network or server via the data communication device 108. Theimages obtained from the network or server include social networkingservice images (hereinafter “SNS images”). Note that, by executing an OSprogram, the CPU 101 analyzes data attached to the image data of eachimage to figure out the storage source from which the image has beenobtained. Here, images may be obtained from an SNS via the applicationto manage the source from which the images are obtained within theapplication. Note that the images to be obtained by the image obtainingcomponent 203 are not limited to the above and may be other types ofimages.

The image analysis component 204 analyzes the pieces of image dataobtained by the image obtaining component 203. In the presentembodiment, the image analysis component 204 derives a feature amount ofeach image and executes determination of objects and detection of facesin the images, expression recognition on the detected faces, andpersonal recognition on the detected faces. Further, the image analysiscomponent 204 refers to the data attached to each piece of image dataobtained from the HDD 104 (e.g., Exif information) and obtainsinformation on the image capture date and time. Note that theinformation obtained as a result of the analysis of each piece of imagedata by the image analysis component 204 will be referred to as“analysis information”.

The main subject setting component 205 sets the main subject to beemphasized for each album. In the present embodiment, the main subjectsetting component 205 obtains information on each album's main subjectto be emphasized sent from the album creation condition settingcomponent 201.

The image scoring component 208 scores each image based on the albumcreation conditions set by the album creation condition settingcomponent 201 and the analysis information derived by the image analysiscomponent 204. In the present embodiment, the image scoring component208 scores each image such that an image suitable to be laid out isgiven a high score. For the scoring to be performed such that an imagesuitable to be laid out is given a high score, the analysis informationon each image, the result of classification of the image, imageinformation, the album creation conditions, and the like are used.Incidentally, another type of information may be additionally oralternatively used. Examples of the image suitable to be laid outinclude an image with high sensuousness such as a high contrast or sharpedges, and an image in which its subject, such as a person, an animal,or a building, that serves as a central theme (i.e., main subject)appears large. Further, the image scoring component 208 performs thescoring for each main subject set by the main subject setting component205. For example, the image scoring component 208 gives a low score toan image which has remarkably high sensuousness but does not have theset main subject appearing therein, and gives a high score to an imagewhich is captured under a bad condition, such as backlight, but has theset main subject appearing large therein.

The scene division component 206 divides the image group obtained by theimage obtaining component 203 by scene by using the analysis informationderived by the image analysis component 204. “Scene” here means a set ofimages grouped according to the analysis information (sub image group).For example, the scene division component 206 determines that two imagescaptured at different times belong to the same scene in a case where thedifference in image capture time is less than or equal to apredetermined threshold value, and determines that images with the sameperson or background belong to the same scene.

The scene classification component 207 determines the category of eachscene obtained by the scene division component 206. Examples of thescene categories include a situation such as indoor or outdoor, theevent in which the images were captured, such as a trip or a weddingceremony, and so on.

The double-page spread creation parameter generation component 209generates a plurality of parameters for creating double-page spreadsbased on the main subjects set by the main subject setting component 205and the analysis information derived by the image analysis component204. The plurality of parameters include, for example, a parameter forcommon double-page spreads and a parameter for individual double-pagespreads. Each of the parameters here is a setting value that defines acriterion for creating a double-page spread. Examples of such parametersinclude a weight or threshold value that determines the degree ofpriority of each score obtained by the image scoring component 208,which will be used in the selection of images to be used in double-pagespreads. This is a setting value for selecting whether to prioritize animage with only a particular main subject or an image with two or moremain subjects among images with the main subjects set by the mainsubject setting component 205. By using the plurality of parameters, thedouble-page spread creation criterion varies by album. Also, thedouble-page spread creation parameters include a parameter for derivinga score of an image taking into account its relativeness in adouble-page spread or the like on the assumption that the image isplaced in that double-page spread.

Here, a parameter for deriving a score of an image alone for selectingan image to be used in a double-page spread will be referred to as thefirst parameter for convenience, and a parameter for deriving a score ofan image taking into account the relativeness of that image placed inthe double-page spread or the like will be referred to as “secondparameter” for convenience. In this case, the double-page spreadcreation component 210 to be described next firstly selects candidateimages usable in the double-page spread according to the firstparameter. The double-page spread creation component 210 then determinesimages suitable for the double-page spread among the candidate imagesand also a suitable template or the like according to the secondparameter. Here, the parameters are classified into the first parameterand the second parameter for convenience. Parameters comprehensivelyrepresenting these will be collectively referred to as the double-pagespread creation parameters.

The double-page spread creation component 210 creates double-page spreaddata by selecting images to be used in the double-page spreads andplacing them according to the parameters generated by the double-pagespread creation parameter generation component 209. For example, thedouble-page spread creation component 210 selects candidate images basedon the first parameter. The first parameter is, as mentioned above, aparameter that changes a weight for each of the set main subjects and isalso a parameter that applies a weight corresponding to a predetermineddegree of priority. The degree of priority may be, for example, a degreeof priority corresponding to the presence or absence of cropping. Forexample, since a common double-page spread tends to contain a pluralityof main subjects, images of sizes that do not involve cropping may beprioritized, in order to prevent a main subject(s) from being leftunselected. As for individual double-page spreads, it is considered thatthere may be only one main subject and cropping may be performed to geta close-up of the main subject. Thus, the priority of images thatinvolve cropping does not have to be lowered.

Note that degrees of priority as above may be determined in advance orset by the user as appropriate. By preparing weights or threshold valuescorresponding to these degrees of priority, the user can change theparameters by changing the degree of priority for pieces of information.Also, such degrees of priority may be degrees of priority taking theabove-mentioned information and also various other types of informationinto account. The various other types of information may includeinformation on the scene of the image, information on the number ofobjects other than the main subject, the number of people other than themain subject, the resolution, the background, and so on.

The double-page spread creation component 210 then applies the secondparameter to the score of each candidate image derived as describedabove to thereby derive a score, and creates each double-page spreadsuch that the sum of the scores of the images placed in the double-pagespread is high. The sum of the scores of the images placed in thedouble-page spread will be referred to as “the score of the double-pagespread”. The second parameter is a parameter taking relativeness in thedouble-page spread into account and, for example, enables images atcertain time intervals to be preferentially used in the same double-pagespread or enables a weight to be applied according to the slot size.

As mentioned earlier, the double-page spread creation parameters (firstparameter and second parameter) are parameters different for commondouble-page spreads and individual double-page spreads. This allowsimages to be selected based on different double-page spread criteria,and therefore common double-page spreads and individual double-pagespreads are created as different double-page spreads.

The double-page spread joining component 211 joins the pieces ofdouble-page spread data created by the double-page spread creationcomponent 210. Specifically, the double-page spread joining component211 determines the order of the double-page spreads created by thedouble-page spread creation component 210 to create the entire layout ofeach album.

The layout information output component 212 outputs album data accordingto the entire layout of each album created by the double-page spreadjoining component 211. The album data is, for example, image data of abitmap format in which images are placed according to predeterminedlayouts.

The album information output component 213 outputs album informationused in the album creation. The album information contains, for example,album configuration information and album generation information. Thealbum configuration information is configuration information forming analbum such as used image information, image arrangement information,template information, slot shape-size information, background colorinformation, cropping information, text/stamp editing information, andcommon/individual page information. The album generation information isgeneration information used in the generation of the album data such asthe album creation conditions, the analysis information on the images,the score information, and the scene information. Incidentally, bygenerating an album with this album generation information, the samealbum can be generated. The album data itself may be contained in thealbum information. This information is output on an album-by-albumbasis.

The album display component 214 performs display control for displayingthe bitmap data output by the layout information output component 212 onthe display 105.

The album information holding component 215 receives and holds the albuminformation output by the album information output component 213. In acase where an album is updated as a result of album editing or the like,the album information holding component receives and holds albuminformation matching the update. The album information here containsalbum change information as well as the above-mentioned albumconfiguration information and album generation information. The albumchange information may be, for example, a user operation history onalbum editing or difference information changed as a result of the albumediting. These pieces of information are held on an album-by-albumbasis.

After the program of the album creation application in the presentembodiment is installed in the image processing apparatus 100, thisapp's launch icon is displayed in the top screen (desktop) of theoperating system (OS) running on the image processing apparatus 100.Upon a double-click on the launch icon in the desktop displayed on thedisplay 105 by the user with the mouse 107, the program of the albumcreation application stored in the HDD 104 is loaded to the RAM 103.Then, the program loaded to the RAM 103 is executed by the CPU 101, sothat the album creation application is launched. The above are thecontents of the software configuration of the image processing apparatusin the present embodiment. Note that the application may be in adifferent form. For example, it may be a web app that displays screensand the like in a browser running on the image processing apparatus 100.

<GUI Screen>

A GUI screen of the album creation application in the present embodimentwill be described below using FIG. 4. FIG. 4 is a diagram illustrating aGUI screen 401 that is provided by the album creation applicationlaunched and is displayed on the display 105. The user can set the albumcreation conditions via the GUI screen 401.

The GUI screen 401 has a path box 402 and a folder selection button 403as parts for setting photo images to be included in albums. The path box402 is a box for indicating the storage location (path), in the HDD 104,of the image group to be used in the album creation. The folderselection button 403 is a button for selecting the folder containing theimage group to be used in the album creation. In response to the userclicking the folder selection button 403 with the mouse 107, a treeincluding a plurality of folders is displayed. Then, in response to theuser selecting the folder containing the image group to be used in thealbum creation, a folder path to the selected folder is displayed in thepath box 402.

A double-page spread number box 404 is a box for designating the totalnumber of double-page spreads per album. The user can directly enter anumber into the double-page spread number box 404 with the keyboard 106or enter a number into the double-page spread number box 404 from a listwith the mouse 107. An album number box 410 is a box for designating thenumber of albums to be created.

A main subject designation part 405 is an element for designating themain subject to be emphasized in each of the number of albums entered inthe album number box 410. For example, the user can designate the mainsubject by dragging an image with the main subject and dropping it intothe main subject designation part 405 with the mouse 107. In oneexample, the person A, the person B, etc. mentioned above with referenceto FIG. 3 are designated.

A double-page spread photo number setting part 406 is a slider bar forsetting the number of images to be placed in each double-page spread ineach album to be created. Moving the slider to “MORE” side increases thenumber of images to be placed in each double-page spread. On the otherhand, moving the slider to “LESS” side decreases the number of images tobe placed in each double-page spread.

A material designation part 407 is an element for setting material ofthe albums to be created. As specific items related to the material tobe set, the size of the albums and the paper type of the albums can beemployed. The type of the cover and the type of the binding part may beset as well.

An OK button 408 is a button for determining selected conditions as thealbum creation conditions. In response to the user clicking the OKbutton 408 with the mouse 107, the album creation conditions are fixedand transferred to the automatic layout processing component 202 via thealbum creation condition setting component 201. Specifically, theinformation on the path entered in the path box 402 is transferred tothe image obtaining component 203. The value of the total number ofdouble-page spreads entered in the double-page spread number box 404 istransferred to the double-page spread creation component 210. The valueof the number of albums entered in the album number box 410 and theinformation on the main subject designated in the main subjectdesignation part 405 are transferred to the double-page spread creationparameter generation component 209.

A reset button 409 is a button for resetting the setting contents in thedisplay screen. The above are the contents of the GUI screen of thealbum creation application in the present embodiment.

<Automatic Layout Process>

An automatic layout process in the present embodiment will be describedbelow using FIG. 5A. FIG. 5A is a flowchart of a process of executingautomatic layout by the album creation application according to thepresent embodiment. Note that the CPU 101 implements the flowchartsillustrated in FIGS. 5A to 5C by reading out a program stored in the HDD104 into the ROM 102 or the RAM 103 and executing it, for example.

In step S501, the album creation condition setting component 201 setsthe album creation conditions. In the following, “step S_” will beabbreviated simply as “S_”. In the present embodiment, the image groupto be used for each album, the number of double-page spreads, the numberof albums, the main subject of each album, whether the number of imagesto be placed in each double-page spread is large or small, and thematerial with which to create the albums are set as the album creationconditions (see FIG. 4).

In S502, the image obtaining component 203 reads an image satisfying theconditions for the image group to be used for the albums set in S501from the HDD 104. The image obtaining component 203 then loads the readimage into the RAM 103.

In S503, the image analysis component 204 analyzes the image loaded inthe RAM 103 in S502. Here, the image analysis in this step will bedescribed using FIG. 5B.

In S50301, the image analysis component 204 obtains information on theimage capture date and time of the piece of image data obtained by theimage obtaining component 203. In the present embodiment, the imageanalysis component 204 obtains the information on the image capture dateand time of the piece of image data based on the Exif informationattached to it.

In S50302, the image analysis component 204 derives an image-qualityfeature amount of the piece of image data obtained by the imageobtaining component 203. The image-quality feature amount is, forexample, in-focus degree. An edge detection method can be used as amethod of determining the in-focus degree, and a publicly known Sobelfilter can be used as the edge detection method. The Sobel filter may beused to detect edges in the image, and the difference in luminancebetween the start and the end of each edge may be divided by thedistance between the start and the end to calculate the luminancegradient, i.e., the gradient of the edge. By calculating the averagegradient of the edges in the image, an image with a large averagegradient can be determined to be in sharper focus than an image with asmall average gradient. In the present embodiment, a plurality ofthreshold values are set for measuring the degree of the calculatedaverage gradient of the edges. By determining which threshold value thecalculated gradient of the edges is greater than or equal to, whetherthe degree is an acceptable in-focus degree is determined. Specifically,as two different gradient threshold values, a first gradient thresholdvalue and a second gradient threshold value (note that first gradientthreshold value > second gradient threshold value) are set to determinethe in-focus degree by three levels of A, B, and C. In a case where theaverage gradient of the edges in the image is greater than or equal tothe first threshold value, the in-focus degree is a preferred in-focusdegree (indicated as A). In a case where the average gradient of theedges in the image is less than the first threshold value and greaterthan or equal to the second threshold value, the in-focus degree is anacceptable in-focus degree (indicated as B). In a case where the averagegradient of the edges in the image is less than the second thresholdvalue, the in-focus degree is an unacceptable in-focus degree (indicatedas C).

In S50303, the image analysis component 204 detects objects in the pieceof image data obtained by the image obtaining component 203 and alsoclassifies the detected objects. In the present embodiment, faces aredetected as the objects. Here, any publicly known method is usable as aface detection method. For example, AdaBoost, which creates a strongclassifier from a plurality of prepared weak classifiers, can be used assuch a publicly known method. In the present embodiment, a strongclassifier created by AdaBoost is used to detect the faces of persons.In S50303, while detecting faces, the image analysis component 204 alsoobtains an upper left coordinate value and a lower right coordinatevalue of the region of each face in the image. Deriving these twocoordinate values makes it possible to specify the position and size ofeach face. Further, AdaBoost that detects animals such as dogs and catsand dishes like that for the faces of persons is also executed. In thisway, it is possible to detect objects including persons, animals, anddishes and also classify the objects in the image. Note that the objectsto be detected are not limited to the above, and may be flowers,buildings, stationary articles, or the like. Also, while a case of usingAdaBoost to detect (and classify) objects has been described here, alearned model with a neutral network or the like may be used to detect(and classify) objects.

In S50304, the image analysis component 204 performs personalrecognition on the faces detected by the image analysis component 204.Firstly, the image analysis component 204 performs derives the degree ofsimilarity between each extracted facial image and representative facialimages stored in association with personal IDs in a face dictionarydatabase. Then, the personal ID whose degree of similarity thus derivedis greater than or equal to a predetermined threshold value and is thehighest is determined as an ID corresponding to the extracted facialimage. That is, the person corresponding to the personal ID whose degreeof similarity is greater than or equal to the predetermined thresholdvalue and is the highest is specified as the person of the extractedfacial image. The image analysis component 204 obtains the degree ofsimilarity of each facial image in the process target image for each ofthe plurality of representative facial images. Note that in a case whereall of the degrees of similarity derived for the respective personal IDsare less than the predetermined threshold value, the person of theextracted facial image is assumed as a new person, and a new personal IDis assigned and registered in the face dictionary database. The facedictionary database is stored in the HDD 104, for example.

The description now returns to FIG. 5A. In S504, the image analysiscomponent 204 determines whether the processes in S502 to S503 have beencompleted for all images in the image group satisfying the conditionsset in S501. In a case where the result of the determination in thisstep is positive, the flow proceeds to S505. On the other hand, in acase where the result of the determination is negative, the flow returnsto S502.

In S505, the scene division component 206 performs scene division on theimage group obtained by the image obtaining component 203. The scenedivision refers to the division of the obtained image group into aplurality of sub image groups by using image information. Specifically,by using the information on the image capture date and time obtained inS50301 as the image information, the image group is divided into aplurality of sub image groups based on the time difference between theimage capture dates and times of images. An example of the actualdivision is as follows.

Focusing firstly on the image with the oldest (or newest) image capturetime in the image group, its time difference from the next oldest(newest) image is calculated, and whether or not the calculated timedifference is greater than or equal to a predetermined threshold valueis determined. Such a process is performed on all images by sequentiallyswitching the image of interest to an image with a newer (or older)image capture time. Note that “division” in the present embodiment meansdividing the image group such that each two images are sorted as a newerone and an older one based on their image capture time. In the presentembodiment, in a case where the difference between the image capturetime of the image of interest and the image capture time of the nextoldest (newest) image is 16 hours or longer, the image group is dividedsuch that these images belong to different sub image groups. Note thatthe threshold value for the time difference to be used in the divisionis not limited to the above value. FIG. 6 illustrates the result ofdivision of an image group by the above scene division method.

Incidentally, in the present embodiment, the information on the imagecapture date and time is used to perform the scene division, but theinformation to be used is not limited to this one. For example,information on the image capture location may be used to divide theimage group such that images captured at near locations belong to thesame scene. In another example, a personal recognition result may beused. For example, yearbook images of students belonging to a givengroup (class, club, etc.) may be registered in the application inadvance, and an image group as a batch of images with any of thestudents belonging to the group may be considered a single scene (subimage group). In still another example, information other than the imageinformation may be used. Here, a method of gathering similar events as asingle scene will be described. The name of a folder storing images ortag information attached to them in a social networking service or thelike is obtained as meta information attached to the images. Forexample, with search words such as “sports meeting” or “school trip”, animage group with meta information containing the search words isconsidered a single scene. To designate search words, the user mayselect ones from among search words pre-incorporated in the applicationvia the album creation condition setting component 201, or enter searchwords into a text box.

In S506, the scene classification component 207 performs sceneclassification on each of the sub image groups obtained in S505. Notethat the following will exemplarily describe a case of classifying eachsub image group (each scene) into one of three categories of “trip”,“daily life”, and “ceremony”, but the classification items are notlimited to these.

Firstly, a plurality of sub image groups each determined in advance tobe classified as trip, daily life, or ceremony are obtained and, foreach of the plurality of sub image groups thus obtained, image-capturefeature amounts are obtained. The image-capture feature amounts obtainedhere are, for example, the image capture period, the number of imagescaptured, and the number of people photographed. The image captureperiod is the time difference between the image capture time of theoldest image among the images included in the sub image group and theimage capture time of the newest image among the same. The number ofimages captured is the number of images (i.e., the number of photos)included in the sub image group. The number of people photographed isthe number of faces in the images with a face(s), and is the number offaces per image. With the plurality of sub image groups, the averagevalue and standard deviation of the image capture periods, the averagevalue and standard deviation of the numbers of images captured, and theaverage value and standard deviation of the numbers of people per imageare derived. Note that in the present embodiment, the number of facesper image is assumed as the number of people per image.

FIG. 7 illustrates an example of the average and standard deviation ofthe image capture periods (times), the average and standard deviation ofthe numbers of images captured, and the average and standard deviationof the numbers of people per image derived with the plurality of subimage groups. These values derived are incorporated in the program ofthe album creation application in advance. That is, at the stage ofdesigning the application, parameters are generated by learning usingimages collected in advance, and the generated parameters areincorporated in the program. After the album creation application islaunched, the average values of the image capture periods, the numbersof images captured, and the numbers of people per image are calculatedwith the sub image groups obtained as a result of the division in S505of the image group designated by the user via the path box 402. Then,scores are calculated for each scene by following the equations belowwith the above-mentioned parameters pre-incorporated in the app(specifically, the average value and standard deviation of each featureamount, or the image capture period, the number of images captured, andthe number of people photographed, of the sub image groups).

Score for Each Scene and Each Feature Amount=50−|10×(Average Value ofFeature Amount for Scene−Feature Amount of Each Sub ImageGroup)/Standard Deviation of Feature Amount for Scene|  Equation (1)

Average Score for Each Scene=(Score for Image Capture Period forScene+Score for Number of Images Captured for Scene+Score for Number ofPeople Photographed for Scene)/Number of Items as FeatureAmounts  Equation (2)

By Equation (1), the score of the sub image group of interest for eachfeature amount is derived for each scene. For example, the scores forthe image capture period, the number of images captured, and the numberof people photographed are derived for trip scene. These scores areaveraged by Equation (2) as a score for trip scene. The scores for theother scenes, namely, daily life scene and ceremony scene, are obtainedin a similar manner as well. By the method described above, an averagescore for trip scene, an average score for daily life scene, and anaverage score for ceremony scene are calculated for each sub imagegroup. Note that the number of items as feature amounts in Equation (2)is 3.

Of the scenes scored for each sub image group, the scene with thehighest score is classified as the scene of this sub image group. In acase where two or more scenes are given the same score, sceneclassification is performed according to their degrees of priority setin advance. For example, in the present embodiment, the order ofpriority is determined in advance as daily life > ceremony > trip, sothat daily life has the highest priority. Note that the order ofpriority is not limited to the above, and also the configuration may besuch that the user can change the order of priority.

Sub image groups (1) to (8) in FIG. 6 represent the sub image groupsobtained by the scene division of the image group. Assume that, with thesub image group (5) among these sub image groups, the image captureperiod is 36 hours, the number of images captured is 300, and the numberof people photographed is 1.7. Assume also that, with these, the averagescore is 45.32 for trip, 18.38 for daily life, and −29.92 for ceremony.In this case, the scene of the sub image group (5) is classified astrip. The sub image group thus classified is managed in association witha scene ID so that its scene can be identified. Note that in the presentembodiment, a case of employing the image capture period, the number ofimages captured, and the number of people photographed as theimage-capture feature amounts has been described, but the image-capturefeature amounts are not limited to these. For example, with imagesegmentation using machine learning, a flag indicating, for example,whether sky is in the image may be employed as a feature amount in orderto identify whether the scene is indoor or outdoor. Alternatively,ceremony may be classified further into more specific categories. Forexample, consider a case of classifying a scene as a wedding ceremony ora wedding reception. In this case, by using a personal recognitionresult, the two persons appearing most frequently among all images areassumed as the bride and groom. Then, a scene containing many imageswith only the bride and groom may be classified as the wedding ceremony,while a scene containing many images with the bride and groom and alsoother people with them may be classified as the wedding reception.Further, the feature amounts may be derived by machine learning. Forexample, a scene desired to be classified and an image grouprepresenting this scene may be prepared, and a convolution neuralnetwork (CNN) may be used to perform learning such that each image is aninput and the result of scene classification thereof is an output.

In S507, the main subject setting component 205 sets the main subject ofeach album. In the present embodiment, the main subject settingcomponent 205 obtains information on each album's main subject sent fromthe album creation condition setting component 201. An example ofcreating three types of albums has been generally described in thepresent embodiment. However, for a simple description, an example ofsetting the main subjects of two types of albums will be described belowin which the main subject A is set for the album 1 and the main subjectB is set for the album 2.

In S508, the image scoring component 208 scores an image. This processwill be referred to as the image scoring process. “Scores” to be derivedin this step are parameters for evaluating the suitability of use in analbum(s). Each piece of image data is given scores based on anevaluation from the points of view to be described later, and thesescores are referred to in the image selection to be described later. Inthe present embodiment, a score is given for each main subject set inS507, in addition to a score based on the degree of image quality.Firstly, a score corresponding to the image-quality feature amountderived in S50302 is given. In this example, 1 point is given in a casewhere the in-focus degree is A (good), 0.5 point is given in a case of B(acceptable), and 0 point is given in a case of C (unacceptable). Inthis way, an in-focus image can be scored high. Note that in the presentembodiment, the in-focus degree is employed as the image-quality featureamount, but the image-quality feature amount is not limited to this one.For example, the image size may be used, photographic information suchas information on the lens used to capture the image may be used, or thecompression format of the image input into the application may be used.

After giving the score corresponding to the image-quality featureamount, the image scoring component 208 gives a score for each set mainsubject. That is, in this example, each single image is given threetypes of scores, specifically, scores based on an evaluation from threepoints of view of: whether the image quality is good; whether the mainsubject A is in the image; and whether the main subject B is in theimage. For the scoring for each main subject, it is possible to use thesize of the face(s) derived in S50303 and the result of the personalrecognition in S50304. In a case where the main subject is not in theimage, 0 point is given. In a case where the main subject is in theimage, the ratio of the face of the person set as the main subject tothe image size is set as the score for the main subject. Note that inthe present embodiment, the score for each main subject is given byusing the facial size, but something other than the facial size may beused. For example, the facial expression of the person set as the mainsubject may be determined, and a point(s) may be given in a case wherethe person is smiling. Also, in a case where non-human main subjects areset, the result of the object detection and classification in S50303 isused to perform scoring similarly according to the object size. By theabove process, the score for the image quality, the score for the mainsubject A, and the score for the main subject B are calculated for thefirst image, for example. For an image with the main subject A andwithout the main subject B, for example, a score is calculated from eachpoint of view such that the score for the image quality is 1 point, thescore for the main subject A is 1 point, and the score for the mainsubject B is 0 point.

In S509, the image scoring component 208 determines whether the scoringin S508 has been completed for all images in the image group obtained bythe image obtaining component 203. In a case where the result of thedetermination in this step is positive, the flow proceeds to S510. Onthe other hand, in a case where the result of the determination isnegative, the flow returns to S508.

In S510, the double-page spread creation parameter generation component209 receives the album creation conditions from the album creationcondition setting component 201 and also receives information on themain subject of each album from the main subject setting component 205,and generates the double-page spread creation parameters. As mentionedearlier, the double-page spread creation parameters are setting valuesto be used to select the constituent images of double-page spreads andto lay them out. For example, the double-page spread creation parametergeneration component 209 generates a weight for controlling whether toprioritize the score for the image quality or to prioritize the scorefor each main subject in the selection of images to be used in thedouble-page spreads based on the scores given to each image in S508, athreshold value that serves as a reference point for image selection, orthe like. The double-page spread creation parameter generation component209 generates a “common parameter” which is common to all albums and an“individual parameter” which is different for each album as thedouble-page spread creation parameters. Specifically, the double-pagespread creation parameter generation component 209 generates (the numberof albums+1) double-page spread creation parameters. In this way, it ispossible to create a “common double-page spread” which has the sameconstituent images in the same arrangement and appears in the pluralityof albums, and “individual double-page spreads” each of which hasspecific constituent images in a specific arrangement and appears in aspecific album. Moreover, by using each of these double-page spreadcreation parameters (first parameter), the double-page spread creationcomponent 210 derives a representative score of each image from thescores given to the image in S508 (in this example, the three types ofscores). That is, for each single image, the same number of scores asthe number of double-page spread creation parameters are derived.Moreover, the scores thus derived are used to select the images to beplaced in the double-page spreads. For example, in the creation of thedouble-page spreads, the score of an image X obtained by using thecommon parameter and the score of the image X obtained by using eachindividual parameter are different. In the following, the double-pagespread creation parameters and an example of deriving the scores of animage by using the double-page spread creation parameters in thecreation of double-page spreads will be described.

In the present embodiment, as the common parameter, a weight is set suchthat the scores given to the image are evaluated evenly. Arepresentative score ^(I)score_(S) of an image I in a case of using acommon parameter w_(i) is represented by Equation (3) below.

^(I)score_(S)=Σ_(i) w _(i)·^(I)score_(i)  Equation (3)

Here, ^(I)score_(i) represents the i-th score given to the image I, andw_(i) represents the weight for each score. In the present embodiment,w_(i)=⅓ is set to evenly evaluate the score for the image quality, thescore for the main subject A, and the score for the main subject B. Inthis way, an image which has higher image quality and in which morepeople with higher scores appear is prioritized. This example assumesthat a score corresponding to a type of priority mentioned earlier, suchas whether cropping has been performed, has been reflected in the scorefor the image quality.

On the other hand, as each individual parameter, weights forprioritizing an image with the main subject of the corresponding albumis set. A representative score ‘score’ of an image I in a case of usingan individual parameter w_(o) is represented by Equation (4) below.

$\begin{matrix}{{{}_{}^{}{}_{}^{}} = \left\{ \begin{matrix}0 & \left( {{{}_{}^{}{}_{}^{}} = 0} \right) \\\frac{{w_{q} \cdot {{}_{}^{}{}_{}^{}}} + {w_{o} \cdot {{}_{}^{}{}_{}^{}}}}{2} & ({otherwise})\end{matrix} \right.} & {{Equation}\mspace{14mu}(4)}\end{matrix}$

Here, ^(I)score_(q) represents the score for the image quality given tothe image I, ^(I)score_(o) represents the score for a main subject Ogiven to the image I, w_(q) represents a weight for the score for theimage quality, and w_(o) represents a weight for the main subject O. Inthe present embodiment, w_(q)=w_(o)=1 is set. In this way, only theimages with the main subject are evaluated, and the images to beprioritized are determined by the image quality and the size of the mainsubject. Note that, in the present embodiment, weights to be applied toscores are used as the double-page spread creation parameters, but thedouble-page spread parameters are not limited to these. Also,^(I)score_(S) and ^(I)score_(I) are both derived such that the scoresare high in the case where the main subject is in the image, but are notlimited to these. For an image in which the main subject does not appearat all, such as a scenic image, its score may be calculated based,instead, on the score for the image quality, image information, or thelike. For example, for an image whose difference in image capture timefrom a high-score image is small, the score for the image quality may beused as its representative score. In this way, an image that is likelyto be associated with an image with the main subject can be scored high.Also, the score may be derived with such an association or the likespecified as a weight.

In S511, the double-page spread creation component 210 createsdouble-page spread data of each album by using the parameters generatedin S510. The double-page spread creation component 210 creates thedouble-page spread data such that the score of each double-page spreadwill be high. The score of a double-page spread is a score obtained bysumming the scores of the images in the double-page spread, as mentionedearlier. Specifically, it is the sum of scores obtained by multiplyingthe scores of the images obtained according to the first parameter bythe second parameter. Note that, as mentioned earlier, the score of adouble-page spread is, for example, the sum of the scores of its imageseach multiplied by a weight corresponding to the size of the slot forplacing the image. In this example, firstly, candidate images aredetermined followed by layout which involves determining their slots andarrangement. In this way, a high-score double-page spread is created.Here, the double-page spread creation process in this step will bedescribed using FIGS. 2B and 5C. FIG. 2B is a detailed block diagram ofthe double-page spread creation component 210. FIG. 5C is a detailedflowchart of the double-page spread creation in S511.

In S51101, a double-page spread creation parameter setting component21001 reads one of the parameters generated in S510. In the presentembodiment, the parameters are read in turn in the order of theindividual parameter for the album 1, the individual parameter for thealbum 2, and the common parameter.

In S51102, based on the scores given in S508 and the double-page spreadcreation parameter set in S51101, a double-page spread candidate imageobtaining component 21002 obtains candidate images usable in thedouble-page spread(s) from the entire image group obtained by the imageobtaining component 203. In the present embodiment, based on the scoresderived in S508 and the double-page spread creation parameter set inS51101, each image is scored again in a manner described above byfollowing Equation (3) or (4) (re-scoring of each image). Then, imageswhose score obtained as a result of the re-scoring is greater than orequal to a predetermined threshold value are obtained as candidateimages. Specifically, in S51102 in the first round in this example, eachimage is re-scored using the individual parameter for the album 1. Then,images whose score obtained by using the individual parameter for thealbum 1 is greater than or equal to a predetermined threshold value areobtained as candidate images. In a case where there is no candidateimage, the image with the highest score is set as a candidate image.Note that the candidate images are obtained from the entire image group,but the configuration is not limited to this case. The images alreadyselected in the image selection process to be described later may beexcluded.

In S51103, a double-page spread number setting component 21003determines whether the double-page spread creation parameter set in therecent S51101 is an individual parameter. In a case where the result ofthe determination in this step is positive, the flow proceeds to S51104.On the other hand, in a case where the result of the determination isnegative, the flow proceeds to S51105.

In a case of YES in S51103 (that is, in a case where an individualparameter has been set in the recent S51101), the flow proceeds toS51104. In S51104, the double-page spread number setting component 21003sets the number of double-page spreads (i.e., the number of individualdouble-page spreads corresponding to the individual parameter set inS51101) based on the result of the scene division performed in S505 andthe candidate images obtained in S51102. In the present embodiment, thenumber of double-page spreads is set by following Equation (5) or (6)below.

Number of Double-Page Spreads for Each Scene=ceil(Number of CandidateImages in Scene÷Maximum Number of Images per Double-PageSpread)  Equation (5)

Number of Individual Double-Page Spreads=ΣNumber of Double-Page Spreadsfor Each Scene  Equation (6)

By Equations (5) and (6), the number of double-page spreads to becreated with the individual parameter is derived. The maximum number ofimages per double-page spread is set based on a user input via thedouble-page spread photo number setting part 406. For example, in a casewhere the scene division has been done as illustrated in FIG. 6, thenumber of double-page spreads for each scene is determined according tothe number of candidate images in the scene. Each scene always containsan image(s) obtained by the image obtaining component 203 but does notalways contain a candidate image(s) (a candidate image(s) obtained as aresult of the re-scoring based on the individual parameter). In thisprocess (the process corresponding to the individual parameter), thenumber of double-page spreads is 0 for a scene containing no candidateimage, as a matter of course. On the other hand, a scene containing manyimages with the main subject corresponding to the individual parameteris allocated a corresponding number of double-page spreads. Note that ina case where the number of individual double-page spreads is greaterthan or equal to the total number of double-page spreads set in S501,Equation (7) below is applied.

Number of Individual Double-Page Spreads=Total Number of Double-PageSpreads−1  Equation(7)

By Equation (7), double-page spreads created with different parameters,or the individual parameter and the common parameter, can both becontained within a single album. Thus, the number of individualdouble-page spreads can be set on a scene-by-scene basis according tothe number of images in which the main subject appears with high imagequality. Note that an upper limit value and a lower limit value may beset for the number of individual double-page spreads.

On the other hand, in a case of NO in S51103 (i.e., the common parameterhas been set in the recent S51101), then in S51105, the double-pagespread number setting component 21003 sets the number of double-pagespreads by following Equation (8) below.

Number of Common Double-Page Spreads=Total Number of Double-PageSpreads−MIN(Total Number of Individual Double-Page Spreads in EachAlbum)  Equation(8)

By Equation (8), it is possible to set a number of common double-pagespreads that is adjusted to both the number of individual double-pagespreads and the total number of double-page spreads. Incidentally,according to Equation (8), the number of common double-page spreads isderived according to the number of individual double-page spreads in thealbum having the smallest number of individual double-page spreads.Hence, for the other album, the sum of the number of individualdouble-page spreads in that album and the number of common double-pagespreads by Equation (8) exceeds the total number of double-page spreadsthat has been set. The processing in this case is such that anadjustment is made in the double-page spread joining process to bedescribed later.

Note that a case of setting the number of double-page spreads accordingto the number of candidate images has been described above, but themethod of setting the number of double-page spreads is not limited tothis method. For example, the double-page spread creation parametergeneration component 209 may set the number of double-page spreads in aparameter, and the double-page spread number setting component 21003 mayread the number of double-page spreads set in the parameter. Also, forexample, the double-page spread creation parameter generation component209 may set a given number of double-page spreads pre-incorporated inthe program of the album creation application, or calculate the numberof double-page spreads based on a user-designated ratio of individualdouble-page spreads and common double-page spreads. The number ofindividual double-page spreads and the number of common double-pagespreads have been described together above. In the following, thedescription of the processing for each parameter set in S51101 will becontinued.

In S51106, a double-page spread allocation component 21004 divides thecandidate images obtained in S51102 (i.e., candidate imagescorresponding to the process-target double-page spread creationparameter) into the same number of sub image groups as the number ofdouble-page spreads set in S51104 or S51105, and allocates them. In thepresent embodiment, the candidate images are sorted in order of theimage capture time obtained in S50301 and divided at a point where thetime difference between the image capture times of neighboring images islarge. Such a process is performed until the candidate images aredivided into the number of double-page spreads set in S51104 or S51105.In other words, the division is performed (the number of double-pagespreads −1) times. In this way, albums in which images are arranged inorder of image capture time can be created. In sum, although division asexplained in FIG. 6 is performed, the division differs from the exampleexplained in FIG. 6 in that the image group to be divided is a candidateimage group corresponding to the process-target double-page spreadcreation parameter obtained in S51102. Note that the process in S51106may be performed on a scene-by-scene basis. For example, the double-pagespread allocation component 21004 sorts images allocated as a trip sceneamong the candidate images in order of candidate time and divides them.The double-page spread allocation component 21004 subsequently arrangesimages allocated as a daily life scene in order of candidate time anddivides them. The double-page spread allocation component 21004 mayperform a division process while switching the scene as described above.

In S51107, from the candidate image group(s) allocated to aprocess-target double-page spread in S51106, a double-page spread imageselection component 21005 selects images to be used in the layout. Atthis point, the number of candidate image groups allocated to theprocess-target double-page spread may be greater than the maximum numberof images per double-page spread. The number may of course be equal orsmaller. That is, the images to be used in the layout have not beendetermined and thus a process of selecting the images to be used in thelayout is performed in S51107. In the following, a case of selectingfour images from a candidate image group allocated to a givendouble-page spread will be exemplarily described using FIGS. 8A to 8I.

FIG. 8A illustrates the time difference between the image capture datesand times of the first and last images included in the candidate imagegroup allocated to the double-page spread, in other words, the imagecapture period of the candidate image group. A method of selecting thefirst image in the case of selecting four images will be described usingFIG. 8B. Of all images captured in the image capture period of thecandidate image group illustrated in FIG. 8B, the image whose scoreobtained by the re-scoring in S51102 is the highest is selected as thefirst image. In the selection of the second and subsequent images, theimage capture period of the candidate image group is segmented and theimages are selected from the segmented periods to prevent the imagesfrom being selected concentratedly from one part of the image captureperiod of the candidate image group. Firstly, as illustrated in FIG. 8C,the image capture period of the candidate image group is divided intotwo image capture sections (periods). Specifically, the image captureperiod is divided in half into two image capture sections (divided intotwo groups). Then, as illustrated in FIG. 8D, from among the imagesbelonging to the image capture section where the first image was notselected (the solid-line section), the image with the highest score isselected as the second image. Then, as illustrated in FIG. 8E, the imagecapture sections in FIG. 8D are each divided in half. From among theimages captured in the image capture sections illustrated with the solidlines in FIG. 8F, i.e., the two image capture sections where neither thefirst image nor the second image was selected (the images correspondingto the two image capture sections), the image with the highest score isselected as the third image.

Next, a case where there is no image in the image capture section fromwhich an image is supposed to be selected and thus no image can beselected will be described by taking the selection of the fourth imageas an example. In the present embodiment, the image capture period isdivided according to time, regardless of the number of images. This maylead to a case where there is no image in an image capture sectionobtained by the division. For example, assume that, as illustrated inFIG. 8G, the fourth image should be selected from the image capturesection where no image has been selected (the image capture sectionillustrated with the diagonal lines) but there is no image in this imagecapture section. In such a case, as illustrated in FIG. 8H, each imagecapture section where an image has been selected is divided into twosections. Then, as illustrated in FIG. 8I, from among the imagescaptured in the image capture sections illustrated with the solid linesin FIG. 8I, from which none of the first to third images was selected,the image with the highest score is selected as the fourth image. Evenin a case where the number of images to be selected is increased ordecreased from four, the images are selected in a similar manner to theabove.

The description now returns to FIG. 5C. In S51108, a template settingcomponent 21006 selectively sets a plurality of templates to be used inthe layout from among templates stored in the HDD 104. In this step,templates with designs satisfying the album creation conditions set inS501 are set.

In S51109, a double-page spread layout component 21007 determines theimage layout of the process-target double-page spread. Specifically, thedouble-page spread layout component 21007 determines a template suitablefor laying out the images selected in S51107 from among the plurality oftemplates set in S51108. Now, a method of determining the template inthis step will be described using FIG. 9. FIG. 9 is a block diagram offunctions related to the determining of the template.

A selected image information obtaining component 901 obtains the numberof images selected by the double-page spread image selection component21005 and image information on each of these images. The imageinformation obtained is the image's width and height, image capture dateand time information, and scores calculated by the image scoringcomponent 208. A template selection component 902 selects templateshaving the same number of slots as the number of selected images fromamong the templates set by the template setting component 21006. Aselected image sorting component 903 sorts the selected images in orderof image capture time. A template selection component 904 selects, fromamong the templates selected by the template selection component 902,templates in each of which the sequential position of its main slot toplace a main image matches that of the main image arranged in order ofimage capture time. Here, “main image” refers to the image whose scoreobtained as a result of the re-scoring in S51102 is the highest amongthe plurality of images selected by the double-page spread imageselection component 21005. Of the plurality of images, the images otherthan the main image are “sub images”. In this template selection, notonly a match between the sequential positions but also a match betweenthe aspect ratio of the main image and the aspect ratio of the slot toplace the main image is a condition for the selection. In the presentembodiment, the older the image capture time of the image, the closer itis laid out to the upper left of the template, and the newer the imagecapture time of the image, the closer it is laid out to the lower rightof the template. A template selection component 905 selects, from amongthe templates selected by the template selection component 904, atemplate in which its slots to place the sub images match the sequentialpositions of the sub images arranged in order of image capture time andthe aspect ratios of the images and those of the slots match each other.FIG. 10 is a flowchart of the template determination process.

In S1001, the selected image information obtaining component 901 obtainsselected image information. The selected image information obtained inthis step contains the number of selected images. For the sake ofdescription, the following assumes that the number of selected images isthree.

In S1002, the template selection component 902 selects templates withthe same number of slots as the number of selected images. This exampleassumes that the number of selected images obtained in S1001 is threeand templates with three slots are selected. The following descriptionwill be given by taking as an example a case where templates (1-1) to(4-4) illustrated in FIG. 11 are selected in S1002.

In S1003, the selected image sorting component 903 sorts the selectedimages in order of image capture time. Here, assume that therelationship illustrated in (A) of FIG. 11 is obtained as a result ofsorting the selected images in order of image capture time. Assume alsothat an image 1105 is the main image, and images 1106 and 1107 are thesub images.

In S1004, the template selection component 904 selects templates in eachof which the position where its slot for the main image (hereinafter themain slot) is disposed matches the position where the main image isplaced in the case of sorting in order of image capture time. Further,the template selection component 904 selects templates in each of whichthe aspect ratio of the main slot matches that of the main image. Inthis example, the image 1105 is the image for the main slot with thenewest image capture time and is an image with a portrait aspect ratio.Thus, the templates (3-1) to (3-4) in FIG. 11 are candidate templates.

In S1005, the template selection component 905 selects a template inwhich the aspect ratios of its slots for the sub images (hereinafter thesub slots) match those of the sub images. In the example of FIG. 11, theolder image 1106 for a sub slot, i.e., the image desired to be placed atthe upper left is a portrait image, and the newer image 1107 for a subslot is a landscape image. Thus, the template (3-2) is determined as themost suitable template for the three selected images. As a result, inS51109, the template to be used for the layout of the double-page spreadand information capable of identifying which image to place in whichslot in the template are determined. Note that the information thusdetermined will be referred to as the double-page spread data.

The description now returns to FIG. 5C. In S51110, the double-pagespread layout component 21007 determines whether the processes in S51107to S51109 have been completed for all process-target double-pagespreads. In a case where the result of the determination in this step ispositive, the flow proceeds to S51111. On the other hand, in a casewhere the result of the determination is negative, the flow returns toS51107.

In S51111, the double-page spread creation parameter setting component21001 determines whether the processes in S51101 to S51110 have beencompleted for all parameters generated in S510. In a case where theresult of the determination in this step is positive, the flow proceedsto S512. On the other hand, in a case where the result of thedetermination is negative, the flow returns to S51101.

The description now returns to FIG. 5A. In S512, the double-page spreadjoining component 211 determines a double-page spread identificationnumber of each of the double-page spreads created by the double-pagespread creation component 210 within the corresponding album, andcreates the layout of the entire album. In the present embodiment, thedouble-page spreads are arranged based on the image capture times of theimages placed in the double-page spreads such that the images appear inorder of image capture time.

The joining of the double-page spreads in S512 will be described belowin detail by using FIGS. 12 and 13. FIG. 12 is a block diagramillustrating a detailed configuration of the double-page spread joiningcomponent 211 in the present embodiment. FIG. 13 is a flowchart of aprocess executed by the double-page spread joining component 211.

In S1301, a double-page spread obtaining component 1201 obtains thedouble-page spread data on one album among the double-page spreadscreated by the double-page spread creation component 210. In the presentembodiment, the double-page spread data on, for example, the album 1obtained in this step includes pieces of double-page spread data createdwith the common parameter and pieces of double-page spread data createdwith the individual parameter for the album 1.

In S1302, for each piece of double-page spread data obtained by thedouble-page spread obtaining component 1201, a sorting reference valuecalculation component 1202 calculates a reference value for sorting. Inthe present embodiment, the sorting reference value is the average imagecapture time of the images placed in the piece of double-page spreaddata. Note that the sorting reference value is not limited to the imagecapture time. For example, it may be the average image capture location(latitude and longitude) of the images placed in the double-page spreador the number of images, or image analysis information, such as a colorhistogram, may be used.

In S1303, a sorting component 1203 sorts the pieces of double-pagespread data obtained by the double-page spread obtaining component 1201based on the sorting reference value calculated by the sorting referencevalue calculation component 1202. In the present embodiment, the sortingcomponent 1203 sorts the double-page spreads in ascending order ofaverage image capture time.

In S1304, a double-page spread number adjustment component 1204determines whether the number of pieces of double-page spread data onthe process-target album is the same as the total number of double-pagespreads set in S501. In a case where the result of the determination inthis step is positive, the flow proceeds to S1306. On the other hand, ina case where the result of the determination in this step is negative,that is, in a case where the number of double-page spreads in theprocess-target album has been set to be greater than or equal to thetotal number of double-page spreads in S51104 and thus the number ofdouble-page spreads in the album exceeds the total number of double-pagespreads, the flow proceeds to S1305.

In S1305, a double-page spread number adjustment component 1204 adjuststhe number of double-page spreads in the album to bring it closer to thetotal number of double-page spreads set in S501 by deleting anunnecessary piece(s) of double-page spread data among the pieces ofdouble-page spread data obtained by the double-page spread obtainingcomponent 1201. In the present embodiment, the number of double-pagespreads is adjusted by deleting a piece of common double-page spreaddata. Specifically, of the pieces of common double-page spread data inthe album, the piece of common double-page spread data whose imagecapture time calculated by the sorting reference value calculationcomponent 1202 is the closest to the image capture time of any of thepieces of individual double-page spread data is deleted. After thedeletion, the flow proceeds to S1304. Note that in the presentembodiment, a piece of common double-page spread data is deleted but thedeletion target is not limited to this one. A piece of individualdouble-page spread data may be deleted to adjust the total number ofdouble-page spreads.

In S1306, the double-page spread obtaining component 1201 determineswhether the processes in S1301 to S1305 have been completed for allalbums. In a case where the result of the determination in this step ispositive, the flow proceeds to S513. On the other hand, in a case wherethe result of the determination is negative, the flow returns to S1301.In this way, images can be arranged in order of image capture timethroughout each entire album. The above are the contents of theautomatic layout process in the present embodiment. In the presentembodiment, the numbers and positions of common double-page spreads andindividual double-page spreads can be automatically set on analbum-by-album basis. It is possible to implement automatic layout of aplurality of albums with different main subjects such that the pluralityof albums have a common double-page spread(s) which is(are) the same forall albums and an individual double-page spread(s) which is(are)different for each album.

<<Album Data Editing Process>> <General Description of Editing Process>

A description has been given so far of a process of automaticallygenerating album data having a common double-page spread(s) and anindividual double-page spread(s), each of which represents an attributeof double-page spread. In the following, functions of and processes byan album editing application with which a user can edit generated albumdata will be described. In the present embodiment, the description willbe given on the assumption that the user who performs the editing is thesame as the user who operates the album creation application, but theydo not to be the same user. In the following, a general description ofthe album data editing process will be given first, and then detailedprocesses in the present embodiment will be described.

FIG. 14 is a software block diagram of an album editing application 1400in the present embodiment. In the present embodiment, the album editingapplication 1400 will be described as part of the functionality of thealbum creation application stored in the HDD 104, but may be provided asa separate application from the album creation application. Also, theimage processing apparatus in which the album editing application islaunched may be the same apparatus as the image processing apparatus 100which generated the album data or another image processing apparatus.

As illustrated in FIG. 14, the album editing application 1400 includesan editing mode instruction component 1401, an album informationreception component 1402, an album editing component 1403, an albumdisplay component 1404, and the album information holding component 215.Note that the album information holding component 215 does not have tobe included in the album editing application 1400.

The editing mode instruction component 1401 causes the album editingapplication 1400 to shift to an editing mode in a case of, for example,detecting the user clicking an editing mode panel 1508 (see FIG. 15A)with an UI operation using the mouse 107. The editing mode refers to amode in which operations to change album contents can be performed suchas adding a double-page spread, cropping, replacing an image, changingthe template, changing the size, changing the arrangement, insertingtext and/or a stamp, and deleting a double-page spread. Here, an exampleof shifting to the editing mode in response to detecting a click on theediting mode panel has been described, but the album editing application1400 may always shift to the editing mode after the generation of albumdata. Alternatively, the album editing application 1400 may shift to theediting mode in response to selecting any album.

In response to a shift to the editing mode by the editing modeinstruction component 1401, the album information reception component1402 receives album information from the album information holdingcomponent 215. The album information is, as mentioned earlier,information containing album configuration information, album generationinformation, and album change information. The album informationreception component 1402 receives the album information on analbum-by-album basis.

The album editing component 1403 uses the album information received bythe album information reception component 1402 from the albuminformation holding component 215 to edit an album(s) according to theuser's UI operation using the mouse 107 or the keyboard 106. Asmentioned earlier, the album information contains album configurationinformation and album generation information, and by using the albuminformation, it is possible to obtain album data similar to the albumdata created by the album creation application. In the case where thealbum editing component 1403 updates an album(s), the album editingcomponent 1403 outputs corresponding album information to the albuminformation holding component 215 to update the album information. Also,the album editing component 1403 is capable of creating recommendationsto be displayed to the user during album editing. Examples of therecommendations include a recommended image as a replacement in thedouble-page spread being edited by the user, a recommended double-pagespread including a template or an arrangement, and the like. The albumediting component 1403 is capable of creating various recommendationsand outputting the created recommendations to the album displaycomponent 1404 in response to a shift to the editing mode by the editingmode instruction component 1401.

The album display component 1404 displays bitmap data output by thealbum editing component 1403 on the display 105. The album displaycomponent 1404 also displays an editing screen being edited by the albumediting component 1403 on the display 105. The album display component1404 also displays the recommendation(s) created by the album editingcomponent 1403.

Note that album data obtained as a result of editing by the albumediting application 1400 may be uploaded to the server via the Internetbased on a user instruction. Based on the uploaded album data, printingand bookbinding processes are executed to thereby make albums in theform of booklets (photobooks), which will be delivered to designatedusers.

FIG. 15A and FIGS. 15B-1 and 15B-2 are diagrams illustrating UI displayexamples of album editing screens in the present embodiment. FIG. 15A isan example of a screen displayed on the display 105 after albumgeneration. The album data in the present embodiment is data on threealbums, namely, the album 1 for the person A as its album target (mainsubject), the album 2 for the person B as its album target, and thealbum 3 for a person C as its album target, as described above. An image1501 is an example of an image placed in a double-page spread, and thecharacters in the image 1501 represent the main subjects appearing inthe image. A common double-page spread 1502 represents an example inwhich images with a plurality of main subjects are mainly laid out. Onthe other hand, in individual double-page spreads 1503, 1504, and 1505,images with the main subjects A, B, and C are mainly laid out,respectively. As mentioned earlier, in the present embodiment, aplurality of albums are created each of which includes double-pagespreads created based on a different criterion. The editing mode panel1508 is a panel that enables a shift to the editing mode in response tobeing clicked with the mouse 107. Characters 1506 and 1507 arecharacters respectively representing an individual double-page spreadand a common double-page spread on the display 105. In this example,characters are shown, but the common double-page spreads and theindividual double-page spreads may be given different background colors.

FIG. 15B-1 is a screen displayed on the display 105 by the album editingapplication 1400 after the editing mode panel 1508 is clicked with themouse 107. Specifically, FIG. 15B-1 illustrates an example of an editingscreen. In FIG. 15B-1, an album-based editing screen. Specifically, thedouble-page spreads in each album are displayed. Note that in a casewhere the albums or the double-page spreads cannot fit in the screen,the screen may be configured such that their entirety can be seen viadisplay scroll or the like, or the display size of the double-pagespreads may be changed to display the entire double-page spreads in thescreen. In the present embodiment, depending on whether theediting-target double-page spread is a common double-page spread or anindividual double-page spread, the processing varies. Details will bedescribed later. Note that, in the example of the editing screen in FIG.15B-1, “editing-target double-page spread” is each double-page spread ineach album. Specifically, in the example of FIG. 15B-1, a total of 12double-page spreads are “editing-target double-page spreads”.

An image insertion panel 1509 is a panel to be clicked with the mouse107 to shift to an image insertion state. In one example, in order todetermine the image(s) to be inserted, all images obtained by the imageobtaining component in the album creation may be displayed as selectableimages. Instead of all images, the images not used in the albums may bedisplayed. A text insertion panel 1510 is a panel to be clicked with themouse 107 to shift a text insertion state. For example, the mouse cursormay be changed to a text insertion cursor in response to a click on thetext insertion panel 1510 with the mouse 107, and insertion of text maybe enabled in response to a click within an album with the mouse 107. Inthis state, the text size, the font, and the text color may be settable.A stamp insertion panel 1511 is a panel to be clicked with the mouse 107to shift to a stamp insertion state. For example, stamps may bedisplayed in response to a click on the stamp insertion panel with themouse 107, and the user may be allowed to select any stamp from amongthese stamps and add it in an album. A double-page spread addition panel1512 is a panel to be clicked with the mouse 107 to display adouble-page spread addition UI. Each plus mark 1513 is an icon to beclicked with the mouse 107 to add a double-page spread. The position toadditionally insert a double-page spread is fixed at the position of theplus mark.

FIG. 15B-2 represents the editing mode focusing on a double-page spreadin a desired album. FIG. 15B-2 illustrates an example focusing on adouble-page spread 1 in the album 1 in FIG. 15B-1. FIG. 15B-2 is anediting screen for performing editing on a double-page spread basis. Inthe editing screen in FIG. 15B-2, “editing-target double-page spread” isthe double-page spread focused on. That is, in the example of FIG.15B-2, “editing-target double-page spread” is the double-page spread 1in the album 1. To enable a double-page spread-based editing mode asillustrated in FIG. 15B-2, for example, any of the double-page spreadsin FIG. 15B-2 may be clicked with the mouse 107 to shift a double-pagespread-based editing mode focusing on that double-page spread. Note thatclicking the small double-page spread 1 in the album 2 displayed in FIG.15B-2 displays an editing screen focusing on the clicked double-pagespread 1 in the album 2.

Note that the example described so far assumes that the various panelsare to be left-clicked with the mouse 107, but a desired editing statemay be reached by, for example, displaying a menu with a right-click ofthe mouse 107 and then left-clicking the menu with the mouse 107.

Also, the editing mode instruction component 1401 sets the timing atwhich to apply an editing result. The application of an editing resultis a process of performing editing performed on one album also on theother albums based on the information on the change made as a result ofthe editing. The timing at which to apply an editing result may be acase where an editing operation is performed, a case where the userstores an album, a case where the editing-target double-page spread ischanged, or a case where the editing-target album is changed. Also, thetiming may be designated based on a user setting, or the software maydetermine the timing in advance and this timing may be used. In a casewhere any of such various timing conditions is satisfied, the albumediting component 1403 performs the process of applying the editingresult. The present embodiment assumes that the timing at which to applyan editing result is a case where an editing operation is performed. Theabove is the general description of the album editing process.

<Double-Page Spread Addition Process>

The present embodiment assumes a case where the user performs editing byusing the album editing application 1400 and, as a result, a singledouble-page spread is added to one album (e.g., the album 1 in FIG.15A). In this case, the number of double-page spreads (number of pages)does not match those of the other albums, which causes inequality amongthe album users. In the present embodiment, a description will be givenof an example in which, in a case where the number of double-pagespreads in one album is changed, the number of double-page spreads inthe other albums is changed according to that change. The descriptionwill be given by taking a case of adding a double-page spread as anexample. Note that the added double-page spread may be a double-pagespread automatically created by the album editing application 1400 basedon addition conditions set by the user, or a double-page spread createdby the user by further editing an automatically created double-pagespread. Alternatively, the added double-page spread may be a double-pagespread added by the user by selecting images which the user wishes toadd and also editing their arrangement positions and the like, i.e., adouble-page spread manually added by the user. In the presentembodiment, in a case where the user sets predetermined double-pagespread addition conditions, the album editing application 1400 adds adouble-page spread to a predetermined album according to those settings.The above is a process performed according the set double-page spreadaddition conditions. In the present embodiment, the album editingapplication 1400 performs a process of adding a double-page spread tothe other albums according to the result of the double-page spreadaddition.

FIGS. 16A and 16B are diagrams illustrating examples of adding adouble-page spread. FIGS. 16A and 16B illustrate examples where a resultof adding a double-page spread to the album 1 in the album configurationillustrated in FIG. 15A and adding an edit-applying double-page spreadcorresponding to this editing operation, or the addition of thedouble-page spread, also to the albums 2 and 3 is displayed on thedisplay 105.

FIG. 16A illustrates an example of adding a common double-page spread.Specifically, a common double-page spread is added to the album 1. Theadded common double-page spread is added to the double-page spreadposition of a double-page spread 2, so that the identification numbersof the subsequent double-page spreads are incremented. Also, the samecommon double-page spread is added also to each of the albums 2 and 3 asthe double-page spread 2 in the album in a similar way to the album 1.This makes the number of double-page spreads equal in each album andthus eliminates inequality. Note that in this example, since an addeddouble-page spread 1601 is a common double-page spread, double-pagespreads with the same layout are added to the albums 2 and 3 asedit-applying double-page spreads 1602 and 1603, respectively. Here, theadded double-page spread 1601 and the edit-applying double-page spreads1602 and 1603 are identical double-page spreads with no difference atall or similar double-page spreads.

FIG. 16B illustrates an example of adding an individual double-pagespread. Specifically, an individual double-page spread is added to thealbum 1. An added individual double-page spread 1651 is added at thedouble-page spread position of the double-page spread 2. In response tothis editing operation, or the addition of the double-page spread, anindividual double-page spread 1652 serving as an edit-applyingdouble-page spread is added as a double-page spread 3 in the album 2 andan individual double-page spread 1653 serving as an edit-applyingdouble-page spread is added as the double-page spread 2 in the album 3.The individual double-page spreads 1651, 1652, and 1653 are double-pagespreads with different contents.

FIG. 17 is a block diagram illustrating details of the album editingcomponent 1403. While the album editing component 1403 can includevarious functions, its blocks related to the double-page spread additionfunction will be mainly described in the present embodiment. The albumediting component 1403 has a double-page spread addition conditionsetting component 1701, a double-page spread addition positiondetermination component 1702, a double-page spread criteriondetermination component 1703, an image obtaining component 1704, aused-image determination component 1705, an image analysis component1706, a scene division component 1707, and a scene classificationcomponent 1708. The album editing component 1403 also has a main subjectsetting component 1709, an image scoring component 1710, a double-pagespread creation parameter generation component 1711, a double-pagespread creation component 1712, a double-page spread addition component1713, and an album information output component 1714.

The double-page spread addition condition setting component 1701 setsconditions for initiating a double-page spread addition process. Thisdouble-page spread addition process refers to a process of automaticallyadding a double-page spread by the album editing application 1400. Notethat, in the present embodiment, this double-page spread additionprocess includes therein a process of applying the result of editingusing an added double-page spread also to the other albums, i.e., aprocess of adding a double-page spread to the other albums. As for thesetting of the double-page spread addition conditions, the double-pagespread addition conditions are designated by the user's UI operationusing the mouse 107 or the keyboard 106, and are set in response to anexecution instruction. The double-page spread addition conditionsinclude an image group to be used for the albums, the number ofdouble-page spreads to be added, and the double-page spread additiontarget album.

Note that the number of double-page spreads to be added may bedesignated by the user, or a certain number of double-page spreads mayalways be added. Also, the number of double-page spreads to be added maybe determined based on the number of images that are not actually usedin the image group to be used for the albums. Also, the image scores ofthe images not used in the albums may be used. Specifically, an imagescore threshold value may be set. Then, the number of images whose imagescore is greater than or equal to the image score threshold value may becalculated, and the number of double-page spreads to be added to eachalbum may be determined. A quotient obtained by dividing the number ofimages whose image score is greater than or equal to the image scorethreshold value by a fixed value may be used as the number ofdouble-page spreads to be added.

In another example, a threshold value for the double-page spread scoremay be determined and used. The double-page spread score is the sum ofthe scores of the images included in a double-page spread eachmultiplied by a predetermined weight. The weight here uses, for example,information on time within the double-page spread and information on thesize and arrangement of the slot in the double-page spread including theimage. A score multiplied by a weight corresponding to the size of theslot where the image is placed may be used. This is because an imageplaced in a larger slot is a more important image in the double-pagespread, and such an imagery element should be enhanced. The sum of thescores of the images in a double-page spread each multiplied by apredetermined weight as described above serves as the score of thedouble-page spread. In one example, images whose image score is greaterthan or equal to a threshold value may be used to create double-pagespreads, and double-page spreads whose double-page spread score isgreater than or equal to a double-page spread score threshold value maybe created as many as possible and added. In another example, themaximum number of double-page spreads up to which the album price doesnot increase may be added.

The user may designate the double-page spread addition target album, ora double-page spread may be added to the currently edited album. Notethat the addition-target album set by the double-page spread additionconditions can be expressed as a primary addition-target album. In acase where a double-page spread(s) is(are) added to this primaryaddition-target album, the same number of double-page spreads added tothe primary addition-target album are added to each of the other albums(also referred to as “secondary addition-target album”) as well.

FIG. 18 represents a display screen 1801 provided by the album creationapplication for addition of a double-page spread(s) and is displayed onthe display 105. Via the display screen 1801, the user can designateconditions for creating the double-page spread(s) to be added. Thedisplay screen 1801 is a double-page spread addition UI displayed inresponse to a click on the double-page spread addition panel 1512 inFIG. 15B-1, for example.

A path box 1802 indicates the storage location (path), in the HDD 104,of an image group to be used to create the double-page spread(s) to beadded. The storage location may be the same as or different from thestorage location used in the album creation.

A folder selection button 1803 is a button for selecting the foldercontaining the image group to be used for the double-page spread(s) tobe added from a tree structure displayed. In response to the userleft-clicking the folder selection button 1803 with the mouse 107 andselecting the folder containing the image group to be used for thedouble-page spread(s) to be added from the tree structure displayed, afolder path containing the selected image group is displayed in the pathbox 1802.

A to-be-added double-page spread number box 1804 is a box fordesignating the number of double-page spreads to be added to each album.The user can directly enter a number into the double-page spread numberbox 1804 with the keyboard 106 or enter a number into the double-pagespread number box 1804 from a list with the mouse 107. In the presentembodiment, a process of adding one double-page spread per album isperformed. An example where the user designates the number ofdouble-page spreads to be added via the above double-page spreadaddition UI has been described, but the number of double-page spreads tobe added may be determined automatically, as mentioned earlier. Also,the number of double-page spreads to be added may be determinedautomatically in a case where no number is entered in the double-pagespread number box 1804.

A to-be-added double-page spread position box 1805 is a box fordesignating an identification number of the double-page spread(s) to beadded to an album. The user can directly enter a number into theto-be-added double-page spread position box 1805 with the keyboard 106or enter a number into the to-be-added double-page spread position box1805 from a list with the mouse 107. Note that in a case where one ofthe plus marks 1513 in FIG. 15B-1 is clicked and then the double-pagespread addition panel 1512 is clicked, the position of that plus mark1513 may be set as the position to add a double-page spread.

Each to-be-added double-page spread attribute checkbox 1806 is a box fordesignating the attribute of the double-page spread(s) to be added. Theuser can select one of the checkboxes by using the keyboard 106 or themouse 107. A double-page spread(s) of the selected attribute will beautomatically generated. Also, the attribute may be determinedautomatically in a case where no checkbox is checked. Moreover, acheckbox for automatic determination may be added.

At a double-page spread image number setting part 1807, the number ofimages to be placed in the to-be-added double-page spread(s) to becreated can be set with a slider bar. Setting the slider bar on “MORE”side provides a setting where the number of images to be placed in eachdouble-page spread is increased. On the other hand, setting the sliderbar on “LESS” side provides a setting where the number of images to beplaced in each double-page spread is decreased.

An album selection button 1808 is a button for selecting the album intowhich to insert the double-page spread(s) to be added. In response tothe user left-clicking the album selection button 1808 with the mouse107, the currently generated albums are displayed. By selecting an albumfrom among them, the selected album is determined as the album intowhich to insert the double-page spread(s) to be added. Note that thecurrently edited album may be automatically determined as the album intowhich to insert the double-page spread(s) to be added, as mentionedearlier. Alternatively, the addition UI may be configured such that thecurrently edited album is selected by default. Here, in the presentembodiment, a double-page spread will also be added to the albums otherthan the album selected with the album selection button 1808.

An OK button 1809 is a button for determining selected conditions as theto-be-added double-page spread creation conditions. In response to theuser clicking the OK button 1809 with the mouse 107, the to-be-addeddouble-page spread creation conditions are fixed and transferred tocomponents in the album editing component 1403 via the double-pagespread addition condition setting component 1701. A reset button 1810 isa button for resetting the setting information in the display screen.

The double-page spread addition position determination component 1702determines the insertion position of the double-page spread to be addedin each album. In a case where the position of the double-page spread tobe added has been designated by the double-page spread additioncondition setting component 1701, the double-page spread additionposition determination component 1702 can set that position as thedouble-page spread addition position. Alternatively, the double-pagespread addition position determination component 1702 may automaticallydetermine the double-page spread addition position. In one example ofautomatically determining the double-page spread addition position, thedouble-page spread position may be added after the double-page spreadcurrently edited by the user. In another example, the position mayalways be added after the last double-page spread. In a case where thedouble-page spreads in the album are positionally separated into acommon double-page spread group and an individual double-page spreadgroup, the double-page spread to be added may be inserted as the lastdouble-page spread in the common double-page spread group or theindividual double-page spread group according to a double-page spreadcriterion designated as a double-page spread addition condition. Stillalternatively, the layout of the double-page spread to be added may becreated first, and then its position may be determined such that itmatches the time order of the layout or such that the whole album'sscore is highest. The whole album's score may be, for example, derivedbased on the arrangement of the double-page spreads following thejoining rule of the double-page spread joining component 211 (e.g., timeorder, etc.) or the like.

In still another example of automatically determining the additionposition of a double-page spread after creating the double-page spread,information on the time order of the created double-page spread andinformation on the double-page spread criterion may be used to determinea position in the album where the criterion and the time order match asthe double-page spread addition position. In the case of an album inwhich its double-page spreads are positionally separated into a commondouble-page spread group and an individual double-page spread group, towhich group the double-page spread to be added belongs may be determinedbased preferentially on the double-page spread criterion, and a positionmatching in terms of time order may be determined as the position of thedouble-page spread to be added. In a case of an album in which thepositions of its double-page spreads are not separated into a commondouble-page spread group and an individual double-page spread group, aposition matching in terms of time order may be determined as theposition of the double-page spread to be added. Note that a recommendeddouble-page spread addition position may be determined and displayed tothe user.

The double-page spread criterion determination component 1703 determinesa double-page spread creation criterion for the double-page spread to beadded. Specifically, the double-page spread criterion determinationcomponent 1703 determines which criterion to use among “commondouble-page spread”, “individual double-page spread”, and “otherdouble-page spreads”. “Other double-page spreads” refer to a double-pagespread creation criterion that is neither “common” nor “individual” andwas not used in the automatic album creation, and may be, for example, acriterion using only the scores of images without determining the mainsubject or a criterion obtained by weighting and summing the commondouble-page spread criterion and the individual double-page spreadcriterion.

In a case where the criterion of the double-page spread to be added hasbeen set by the double-page spread addition condition setting component1701, the double-page spread criterion determination component 1703determines the double-page spread criterion based on that setting. In acase where the criterion of the double-page spread to be added has notbeen set, “other” has been set, or another similar case, the double-pagespread criterion determination component 1703 may automaticallydetermine the double-page spread criterion. In an example ofautomatically determining the double-page spread criterion, adetermination corresponding to the position of the double-page spread tobe added may be made. For example, the double-page spread criterion usedfor the double-page spreads on both sides of the double-page spread tobe added may be used. In a case where different double-page spreadcriteria are used for the double-page spreads on both sides, the numberof images suitable for a common double-page spread among the images notused for the albums and the number of images suitable for an individualdouble-page spread among the images not used for the albums arecompared, and the criterion with the larger number of images may beused. Note that the images suitable for a common double-page spread andthe images suitable for an individual double-page spread each refer toan image of a criterion with a higher score found by a comparisonbetween a score for one double-page spread criterion and a score for theother. For the comparison between the scores, a threshold value may beset, and in a case where the difference between the score for a commondouble-page spread and the score for an individual double-page spread isgreater than or equal to the threshold value, the image may bedetermined to be suitable for the criterion with the higher score. In acase where an image is newly added in the editing and its image scorehas not yet been calculated, the image score may be calculated at thispoint.

In another example of automatically determining the double-page spreadcriterion, the double-page spread criterion of the double-page spread tobe added may be determined based on the balance between the number ofcommon double-page spreads and the number of individual double-pagespreads in the album. In one example of determining the criterion usingthe balance between the number of common double-page spreads and thenumber of individual double-page spreads in the album, the criterion isdetermined such that the ratio between the number of common double-pagespreads and the number of individual double-page spreads gets closer to5:5. Also, in a case where the user issues an instruction to add adouble-page spread after selecting images which the user wishes to usefor the double-page spread, a double-page spread criterion suitable forthose selected images may be determined. Alternatively, a double-pagespread may be automatically created for each of the plurality ofcreation criteria, and the criterion with the highest double-page spreadscore may be employed as the double-page spread criterion. Thedouble-page spread criterion may be determined by using one of the aboveexamples or by using a combination of two or more of the examples.Double-page spreads automatically generated for the plurality ofcreation criteria may be displayed on the display 105, and the criterionof a double-page spread selected by the user may be determined as thedouble-page spread criterion.

The image obtaining component 1704 obtains the image group set by thedouble-page spread addition condition setting component 1701. The imageobtaining component 1704 is a processing component similar to the imageobtaining component 203 of the album creation application. Note that ina case where the user has not designated any image group or the user hasdesignated the same image group as that in the album creation and thedata obtained by the image obtaining component 203 in the album creationis still held, the obtaining of the images may be skipped and the imagesthat have been obtained may be used as they are. In a case where thestorage location of the image group set by the double-page spreadaddition condition setting component 1701 is different from the folderobtained by the image obtaining component 203 in the album creation orthe HDD 104 has been updated and the number of images has changed, theset image group is obtained from the HDD 104.

Based on the image use information contained in the album informationreceived by the album information reception component 1402, theused-image determination component 1705 determines, for each imageobtained by the image obtaining component 1704, whether the image is animage used in an album. Note that whether the image is a used image maybe varied depending on the determination by the double-page spreadcriterion determination component 1703. For example, in a case where thedouble-page spread criterion determination component 1703 has determinedthat the double-page spread criterion is the individual criterion, theused-image determination component 1705 may determine whether the imageis a used image by using the image use information on the editing-targetalbum. On the other hand, in a case where the double-page spreadcriterion determination component 1703 has determined that thedouble-page spread criterion is the common criterion, the used-imagedetermination component 1705 may determine whether the image is a usedimage by using the image use information on all albums. In a case wherean image determined as a used image is placed in an album, imageduplication will occur in one or more albums, and the used image istherefore not used in the creation of the double-page spread to beadded. In one example of a method to avoid using a used image in thecreation of the double-page spread to be added, each piece of image dataobtained may be discarded. Also, a used-image flag or used-image labelmay be used as an indication of a used image to skip a process to bedescribed later or not to select such an image as an image for creatingthe double-page spread. In the present embodiment, a process ofattaching the used-image flag to each used image is performed to preventit from being selected as a target image for the creation of thedouble-page spread to be added.

The image analysis component 1706 performs an analysis process on thepieces of image data obtained by the image obtaining component 1704. Theimage analysis component 1706 is a processing component similar to theimage analysis component 204. In a case where there is an image obtainedby the image obtaining component 1704 that is the same as one used inthe album creation, the analysis result obtained in the album creationmay be used.

The scene division component 1707 divides the image group obtained bythe image obtaining component 1704 into scenes based on the analysisinformation obtained by the image analysis component 1706. The scenedivision component 1707 is a processing component similar to the scenedivision component 206. Note that in a case where there are imagesobtained by the image obtaining component 203 that are the same as onesused in the album creation, the division result obtained in the albumcreation may be used.

The scene classification component 1708 determines the category of theimage group in each scene obtained by the scene division component 1707.The scene classification component 1708 is a processing componentsimilar to the scene classification component 207. For the same image asone in the album creation, the classification result obtained in thealbum creation may be used.

The main subject setting component 1709 sets the main subject to beemphasized for each album. The main subject setting component 1709 is aprocessing component similar to the main subject setting component 205.The main subject setting component 1709 sets a main subjectcorresponding the double-page spread criterion determined by thedouble-page spread criterion determination component 1703. Note that anabsence of a main subject may be used as a setting.

Based on the analysis information obtained by the image analysiscomponent 1706, the image scoring component 1710 scores each image foreach main subject set by the main subject setting component 1709. Theimage scoring component 1710 is a processing component similar to theimage scoring component 208. In a case of the same image and subject asthose in the album creation, the scoring does not have to be performedagain, and the scores calculated in the album creation may be used.

The double-page spread creation parameter generation component 1711generates a parameter for creating a double-page spread based on themain subjects set by the main subject setting component 1709 and theanalysis information obtained by the image analysis component 1706. Thedouble-page spread creation parameter generation component 1711 is aprocessing component similar to the double-page spread creationparameter generation component 209. The double-page spread creationparameter generation component 1711 sets a parameter for creating adouble-page spread which corresponds to the double-page spread criteriondetermined by the double-page spread criterion determination component1703. Examples of this double-page spread creation parameter include aweight to be applied to the scores obtained by the image scoringcomponent 1710. Examples of information used to calculate the weightinclude the various types of information described with respect to thedouble-page spread creation parameter generation component 209. Also,the weight may be determined as the double-page spread creationparameter by using used image information, information on time withinthe double-page spread including images, and information on the sizesand arrangements of the slots in the double-page spread includingimages. For example, as described with respect to the double-page spreadcreation parameter generation component 209, in the placement of animage into a slot, the weight may be varied according to whether theimage is an image placed after cropping or an image placed withoutcropping and whether the double-page spread using that image is a commondouble-page spread or an individual double-page spread. Also, the scoresof a user-used image additionally inserted by the user may be weightedto adjust the scores of the user-used image to high scores. Also, foreach used image already used in an album, the weight may be set low toprevent the used image from being selected, in order to avoid employingduplicate images.

Also, the double-page spread creation parameter includes a parameter forderiving the double-page spread score (second parameter). In the exampleof FIG. 15B-2, the double-page spread score for the double-page spread 1in the album 1 is the sum of the scores of the images in the double-pagespread 1 in the album 1 each multiplied by a weight corresponding to thesize of the slot where the image is placed. This is because an imageplaced in a larger slot is a more important image in the double-pagespread, and such an imagery element should be enhanced. Note that whilean example of summing the scores of the images multiplied by the weightscorresponding to their respective slot sizes has been described above,the weighting may be omitted or an average of the images may be used asthe score of the double-page spread.

The double-page spread creation component 1712 creates a double-pagespread by using the result of the scoring by the image scoring component1710, the used image information determined by the used-imagedetermination component 1705, and the double-page spread creationparameter generated by the double-page spread creation parametergeneration component 1711. The double-page spread creation component1712 selects images with high final image scores as the images to beused in the double-page spread and places them to create the double-pagespread. The double-page spread creation component 1712 is a processingcomponent similar to the double-page spread creation component 210. Thedouble-page spread creation component 1712 creates the number ofdouble-page spreads set by the double-page spread addition conditionsetting component 1701. Also, in the present embodiment, in response tothe creation of the double-page spread to be added to the double-pagespread addition-target album set as a double-page spread additioncondition, the double-page spread creation component 1712 performs aprocess of creating a double-page spread to be added on the other albumsas well.

The double-page spread addition component 1713 adds each double-pagespread to be added created by the double-page spread creation component1712 to the corresponding album according to the result of thedetermination by the double-page spread addition position determinationcomponent 1702, and determines the double-page spread identificationnumber of the double-page spread in the album to create the entirelayout of the album.

In a case where the albums are updated, the album information outputcomponent 1714 outputs album information based on the editing result tothe album information holding component 215.

Note that, in the present embodiment, the album editing process has beendescribed based mainly on an example of automatically adding adouble-page spread, the album editing process may be performed accordingto a user operation. As mentioned earlier, even in a case of, forexample, performing cropping, replacing an image(s), changing thetemplate, changing the size, changing the arrangement, inserting textand/or a stamp(s), or deleting a double-page spread(s), the albumediting component 1403 can perform album editing based on a user input.

FIGS. 19A and B are totally a flowchart illustrating a process ofexecuting double-page spread addition by the album editing application1400 according to the present embodiment. The CPU 101 implements theflowchart illustrated in FIGS. 19A and 19B by reading out a programstored in the HDD 104 into the ROM 102 or the RAM 103 and executing it,for example.

In S1901, the double-page spread addition condition setting component1701 sets the double-page spread addition conditions. In the presentembodiment, an image group to be used for the albums, the number ofdouble-page spreads to be added, and the album to be subjected to thedouble-page spread addition are set as the double-page spread additionconditions. Here, the user sets the double-page spread addition-targetalbum to be subjected to the double-page spread addition. In the processof the present embodiment, double-page spread addition will be performedalso on the albums not set as the double-page spread addition target inthis step.

In S1902, the double-page spread addition position determinationcomponent 1702 determines the double-page spread addition position. InS1903, the double-page spread criterion determination component 1703determines which criterion to use for the double-page spread to beadded. Specifically, the double-page spread criterion determinationcomponent 1703 determines which double-page spread criterion to useamong “common double-page spread”, “individual double-page spread”, and“other double-page spreads”, as mentioned earlier.

In S1904, the image obtaining component 1704 reads the images includedin the image group set by the double-page spread addition conditionsetting component 1701 from the HDD 104 and loads it into the RAM 103.In a case where the images have already been loaded in the RAM 103, thisprocess is not performed.

In S1905, the used-image determination component 1705 determines whetheran obtained image is a used image based on the album information (usedimage information) obtained by the album information reception component1402 and the double-page spread criterion determined by the double-pagespread criterion determination component 1703. In a case where thecriterion of the double-page spread to be added is “common”, the usedimage information on all albums is used. In a case where the criterionof the double-page spread to be added is “individual” or “other”, theused image information on the currently edited album is used. In thefollowing, the flowchart will be described firstly by taking as anexample a case where the criterion of the double-page spread to be addedis “common”. The process in a case where the criterion of thedouble-page spread to be added is “individual” will be described later.

In S1906, the image analysis component 1706 analyzes the image dataloaded in the RAM 103. The image analysis process involves a processflow similar to the process explained in FIG. 5B.

In S1907, the image analysis component 1706 determines whether theprocesses in S1905 and S1906 have been finished for all images in theimage group in the HDD 104 designated by the double-page spread additioncondition setting component 1701. In a case where the processes have notbeen finished, the flow returns to S1905. In a case where the processeshave been finished, the flow proceeds to S1908.

In S1908, the scene division component 1707 executes scene division onthe image group obtained by the image obtaining component 1704. S1908 isa similar process to S505. In S1909, the scene classification component1708 performs scene classification on the sub image groups obtained bythe division by the scene division component 1707. S1908 is a similarprocess to S506.

In S1910, the main subject setting component 1709 sets the main subjectof each album. Based on the album information received by the albuminformation reception component 1402, the addition-target album to besubjected to the double-page spread addition set in S1901, and thedouble-page spread criterion determined in S1902, the main subjectsetting component 1709 sets the main subject of the addition-targetalbum. In this example, the double-page spread addition process isperformed on the album 1. Also, in this example, the common double-pagespread criterion is used. As a result, the main subjects A, B, and C areset for the album 1.

In S1911, the image scoring component 1710 scores an image. S1911 is asimilar process to S508. In S1912, the image scoring component 1710determines whether the image scoring in S1911 has been finished for allimages. In a case where the image scoring has not been finished, theflow returns to S1911. In a case where the image scoring has beenfinished, the flow proceeds to S1913.

In S1913, the double-page spread creation parameter generation component1711 generates the double-page spread creation parameter based on thedouble-page spread addition conditions set in S1901 and the mainsubjects of the addition-target album set in S1910. S1913 is a similarprocess to S510.

In S1914, the double-page spread creation component 1712 creates adouble-page spread to be added to the addition-target album by using thedouble-page spread creation parameter generated in S1913. Thedouble-page spread creation process is a similar process to S511.

In S1915, the album editing component 1403 determines whether thecriterion determined by the double-page spread criterion determinationcomponent 1703 is the common double-page spread criterion. In a casewhere the criterion is the common double-page spread criterion, the flowproceeds to S1918. In a case where the criterion is not the commondouble-page spread criterion, the flow proceeds to S1917. Thedouble-page spread criterion is “common” in the description of thisexample. Thus, an example where the flow proceeds to S1918 will bedescribed.

In S1918, the double-page spread addition component 1713 inserts thedouble-page spread created by the double-page spread creation component1712 at the determined double-page spread addition position and performsalbum joining to create the entire layout of the album. Note that in thecase where the double-page spread criterion determined in S1903 is thecommon criterion, the addition of the common double-page spread createdin S1914 is applied also to the other albums in S1918. In the example ofFIG. 16A, the addition-target album is the album 1, and the addeddouble-page spread 1601 is the double-page spread created in S1914.Further, this added double-page spread 1601 is inserted (added) at thedouble-page spread position of the double-page spread 2 in the album 1.In response to the addition of this added double-page spread 1601, whichis a common double-page spread, into the album 1, the edit-applyingdouble-page spreads 1602 and 1603 are added at the double-page spreadposition of the double-page spread 2 in the other albums, or the albums2 and 3, respectively.

In S1919, the album editing component 1403 determines whether the numberof double-page spreads added and joined in the album by the double-pagespread addition component 1713 has reached the number of double-pagespreads to be added set by the double-page spread addition conditionsetting component 1701. In a case where the number of double-pagespreads to be added has not been reached, the album set in S1901 is setas the double-page spread addition-target album, and then the flowreturns to S1902. In a case where the number of double-page spreads tobe added has been reached, the flow proceeds to S1920. In S1920, thealbum information output component 1714 outputs album information.

Next, an example of the process in the case where the double-page spreadcriterion of the double-page spread to be added determined in S1903 isthe individual criterion. Assume that the double-page spreadaddition-target album set in S1901 is the album 1. In this case, in themain subject setting process in S1910, the subject A, which is the mainsubject of the album 1, is set as the main subject. Moreover, in thedouble-page spread creation process in S1914, a double-page spread whosedouble-page spread score is high with the subject A set as the mainsubject is created as the double-page spread to be added.

Thereafter, in S1915, it is determined that the double-page spread to beadded is not a common double-page spread. Thus, the flow proceeds toS1916. In S1916, the album editing component 1403 determines whether thedouble-page spread creation component 1712 has created a double-pagespread to be added for all albums. Specifically, the album editingcomponent 1403 determines whether an individual double-page spread to beadded has been created for each album. In a case where a double-pagespread to be added has been created for all albums, the flow proceeds toS1918. In a case where a double-page spread to be added has not yet beencreated for all albums, an album for which a double-page spread to beadded has not yet been created is set as the double-page spreadaddition-target album. Then, in S1917, the double-page spread additionposition determination component 1702 determines the double-page spreadaddition position in the addition-target album. The double-page spreadaddition position may be the same as or different from the positiondetermined in S1902. The process in S1917 is a process to be performedin a case where the double-page spread to be added is an individualdouble-page spread or the like. Hence, the double-page spread does notnecessarily have to be added at the same position as the positiondetermined in S1902. Note that in this example, the double-page spreadposition of the edit-applying double-page spread is determined at thepoint of S1917. However, the double-page spread position of theedit-applying double-page spread may be determined when the double-pagespread joining in S1918 is performed by referring to the timeinformation on each double-page spread or the like.

Thereafter, the flow returns to S1905, from which the processes arerepeated. In the used-image determination process after returning toS1905, the addition-target album has been changed from that in the lastprocess. Accordingly, the used images are also different. This isbecause in this example the double-page spread criterion is anindividual double-page spread, and therefore the images used in theaddition-target album are the used images. Thereafter, in S1910 the mainsubject of the album is set as the main subject. For example, the mainsubject B is set as the main subject in a case where the currentlyprocessed addition-target album is the album 2. Thus, by performingprocesses as described above, an individual double-page spread iscreated as a double-page spread to be added to the album 2.

As described above, according to the present embodiment, in a case wherea double-page spread is added to any album among a plurality of albums,a double-page spread is added to the other albums as well. In this way,in a case where a double-page spread is added in an editing process, itis possible to make the numbers of double-page spreads in all albumsmatch each other. Note that making the numbers of double-page spreadsmatch each other is equivalent to consequently making the numbers ofpages in all albums match each other. That is, the process describedabove may be a process in which “double-page spread” is replaced with“page”. According to the present embodiment, the numbers of double-pagespreads in all albums match each other. This prevents inequality fromoccurring among the users.

OTHER EMBODIMENTS

In the embodiment described above, an example has been described inwhich, in a case where the number of double-page spreads in apredetermined album is changed, the number of double-page spreads in theother albums is also changed according to that change. Moreover, anexample has been described in which the number of double-page spreads ischanged by adding a double-page spread to thereby increase the number ofdouble-page spreads. However, the number of double-page spreads may bechanged by deleting a predetermined double-page spread to therebydecrease the number of double-page spreads. That is, in a case where adouble-page spread(s) in a predetermined album is(are) deleted, the samenumber of double-page spreads as the deleted double-page spread(s) maybe deleted from the other albums. For example, in a case where a commondouble-page spread in a predetermined album is deleted, the same commondouble-page spread present in the other albums may be deleted. In a casewhere an individual double-page spread in a predetermined album isdeleted, an individual double-page spread present in each of the otheralbums which has time information close to that of the deleteddouble-page spread may be deleted. Alternatively, of the individualdouble-page spreads present in each of the other albums, a double-pagespread with a low double-page spread score may be deleted. Stillalternatively, from each of the other albums, an individual double-pagespread similar to the individual double-page spread deleted from thepredetermined album may be deleted.

Also, the above embodiment has been described by taking, as an example,a case where the number of double-page spreads to be added is mainly“1”, for the purpose of making the description simple. However, two ormore double-page spreads may be added or deleted. Moreover, addition anddeletion can be set simultaneously.

Also, in the above embodiment, an example has been described in which adouble-page spread to be added to a predetermined album among aplurality of albums is automatically created by the album editingcomponent 1403 based on the double-page spread additional creationconditions set via the double-page spread addition UI in FIG. 18.However, the embodiment is not limited to this case. The user maymanually edit the predetermined album to add a double-page spread to it.In this case, if the attribute of the double-page spread added by theuser operation is a common double-page spread, the same double-pagespread may be added to the other albums. If the attribute of thedouble-page spread added by the user operation is an individualdouble-page spread, the processes from S1917 in FIGS. 19A and 19B may beperformed on the other albums.

Embodiment(s) of the present disclosure can also be realized by acomputer of a system or apparatus that reads out and executes computerexecutable instructions (e.g., one or more programs) recorded on astorage medium (which may also be referred to more fully as a‘non-transitory computer-readable storage medium’) to perform thefunctions of one or more of the above-described embodiment(s) and/orthat includes one or more circuits (e.g., application specificintegrated circuit (ASIC)) for performing the functions of one or moreof the above-described embodiment(s), and by a method performed by thecomputer of the system or apparatus by, for example, reading out andexecuting the computer executable instructions from the storage mediumto perform the functions of one or more of the above-describedembodiment(s) and/or controlling the one or more circuits to perform thefunctions of one or more of the above-described embodiment(s). Thecomputer may comprise one or more processors (e.g., central processingunit (CPU), micro processing unit (MPU)) and may include a network ofseparate computers or separate processors to read out and execute thecomputer executable instructions. The computer executable instructionsmay be provided to the computer, for example, from a network or thestorage medium. The storage medium may include, for example, one or moreof a hard disk, a random-access memory (RAM), a read only memory (ROM),a storage of distributed computing systems, an optical disk (such as acompact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™),a flash memory device, a memory card, and the like.

While the present disclosure has been described with reference toexemplary embodiments, it is to be understood that the disclosure is notlimited to the disclosed exemplary embodiments. The scope of thefollowing claims is to be accorded the broadest interpretation so as toencompass all such modifications and equivalent structures andfunctions.

This application claims the benefit of Japanese Patent Application No.2021-020369, filed Feb. 12, 2021, which is hereby incorporated byreference wherein in its entirety.

What is claimed is:
 1. An image processing apparatus comprising: anobtaining unit configured to obtain album information forming aplurality of albums; and an editing unit configured to, in a case ofreceiving an instruction to add a double-page spread to a predeterminedalbum among the plurality of albums, add a double-page spread also to analbum other than the predetermined album among the plurality of albums.2. The image processing apparatus according to claim 1, furthercomprising a setting unit configured to set a double-page spreadaddition condition, wherein the editing unit adds a double-page spreadto the predetermined album according to the set double-page spreadaddition condition.
 3. The image processing apparatus according to claim2, wherein the double-page spread addition condition includes a settingof a double-page spread addition-target album as an album to which toadd a double-page spread, and the editing unit determines an album setas the double-page spread addition-target album as the predeterminedalbum.
 4. The image processing apparatus according to claim 1, whereinattributes of double-page spreads in the plurality of albums include anattribute of a common double-page spread common to all of the albums andan attribute of an individual double-page spread in each of the albums.5. The image processing apparatus according to claim 4, wherein in acase where an attribute of the double-page spread to be added to thepredetermined album is a common double-page spread, the editing unitadds a same double-page spread as the double-page spread to be added tothe predetermined album also to the other album.
 6. The image processingapparatus according to claim 5, wherein the editing unit inserts thedouble-page spread to be added at a same double-page spread position ineach of the albums.
 7. The image processing apparatus according to claim4, wherein an attribute of the double-page spread to be added to thepredetermined album is an individual double-page spread, the editingunit creates a different double-page spread for each of the plurality ofalbums.
 8. The image processing apparatus according to claim 7, whereinthe editing unit determines a double-page spread position to be added inthe other album, the position being suitable in the album.
 9. The imageprocessing apparatus according to claim 1, wherein the editing unitdetermines a double-page spread position to be added in thepredetermined album according to designation from a user.
 10. The imageprocessing apparatus according to claim 1, wherein the editing unit addsdouble-page spreads such that the number of double-page spreads in thepredetermined album and the number of double-page spreads in the otheralbum match each other.
 11. The image processing apparatus according toclaim 1, wherein the album information is information created by analbum creation application configured to automatically create albumdata.
 12. An image processing method comprising: obtaining albuminformation forming a plurality of albums; and in a case of receiving aninstruction to add a double-page spread to a predetermined album amongthe plurality of albums, adding a double-page spread also to an albumother than the predetermined album among the plurality of albums. 13.The method according to claim 12, further comprising setting adouble-page spread addition condition, wherein a double-page spread isadded to the predetermined album according to the set double-page spreadaddition condition.
 14. The method according to claim 12, wherein thedouble-page spread addition condition includes a setting of adouble-page spread addition-target album as an album to which to add adouble-page spread, and an album set as the double-page spreadaddition-target album is determined as the predetermined album.
 15. Themethod according to claim 12, wherein attributes of double-page spreadsin the plurality of albums include an attribute of a common double-pagespread common to all of the albums and an attribute of an individualdouble-page spread in each of the albums.
 16. The method according toclaim 15, wherein in a case where an attribute of the double-page spreadto be added to the predetermined album is a common double-page spread, asame double-page spread as the double-page spread to be added to thepredetermined album is added also to the other album.
 17. The methodaccording to claim 12, wherein the editing unit determines a double-pagespread position to be added in the predetermined album according todesignation from a user.
 18. The method according to claim 12, whereinthe album information is information created by an album creationapplication configured to automatically create album data.
 19. Anon-transitory computer readable storage medium storing a program whichcauses a computer to execute an image processing method, the imageprocessing method comprising: obtaining album information forming aplurality of albums; and in a case of receiving an instruction to add adouble-page spread to a predetermined album among the plurality ofalbums, adding a double-page spread also to an album other than thepredetermined album among the plurality of albums.